Cargando…

The Python quick syntax reference /

The Python Quick Syntax Reference is the 'go to' book that contains an easy to read and useguide to Python programming and development. This condensed code and syntaxreference presents the Python language in a well-organized format designed tobe used time and again. You won't find jar...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Walters, Gregory (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: [Berkeley, CA] : Apress, [2014]
Colección:Expert's voice in Python.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • At a Glance; Introduction; Chapter 1: Hello Python; Python's Interactive Shell; Commands; Multiline Statements; The Code; Decoding the Code; Comments; Chapter 2: Variables; Case Sensitivity; Proper Variable Naming; Assignment; Data Types; Numeric; String; List; Tuple; Dictionary; Data Type Conversion; int(s, [base]); long(s, [base]); float(s); complex(real [, imaginary]); str(x); tuple(s); list(s); set(l); dict(s) (s must be sequence of (key, value) tuples); frozenset(s); chr(x); unichr(x); ord(c); hex(x); oct(x); Chapter 3: Operators; Arithmetic Operators; + Addition;
  • Subtraction.
  • * Multiplication/ Division; % Modulus; ** Exponent; // Floor Division; Comparison Operators; ==; == (Strings);!=; ;>; =;>; Precedence of Operators; Chapter 4: Strings; Appending to Srings; String Functions; len(); min(); max(); s1 in s2; s1 not in s2; s1 + s2; s[x]; s[x1:x2]; s[x1:x2:x3]; String Methods; str.capitalize(); str.center(width[, fillchar]); str.count(sub[, start[, end]]).
  • IF / ELIF / ELSE StatementsFor; Break; Continue; Else; Pass; While; Chapter 6: Data Structures; Data Structure Example; Digging Deeper; Lists; List Functions; len(L); min(L); max(L) function; x in L; x not in L; L1 + L2; L[x]; L[x1:x2]; del(L[x]); List Methods; .append(x); .extend(L); .insert(i, x); .remove(x); .pop([i]); .index(x); .count(x); .sort(); .reverse(); Dictionaries; Dictionary Functions; len(dictionary); dict(list); Dictionary Methods; .clear(); .copy(); .get(key[, default]); .has_key(key); .items(); .keys(); .pop(key[, default]); .setdefault(key[, default]); .update(other).
  • Str.decode([encoding[, errors]])str.encode([encoding[, errors]]); str.endswith(suffix[, start[, end]]); str.expandtabs([tabsize]); str.find(substring[, start[, end]]); str.format(*args, **kwargs); str.format_map(mapping) Python 3.x only; str.index(substring[, start[, end]]); str.isalnum(); str.isalpha(); str.isdecimal() Python 3.x only; str.isdigit(); str.isidentifier() Python 3.x only; str.islower(); str.isprintable() Python 3.x only; str.isspace(); str.istitle(); str.isupper(); str.join(iterable); str.ljust(width[, fillchar]); str.lower(); str.lstrip([chars]); str.maketrans(x[, y]]) Python 3.x only.
  • Str.partition(sep)str.replace(old, new[, count]); str.rfind(sub[, start[, end]]); str.rindex(sub[, start[, end]]); str.rjust(width[, fillchar]); str.rpartition(sep); str.rsplit([sep[, maxsplit]]); str.rstrip([chars]); str.split([sep[, maxsplit]]); str.splitlines ([keepends]); str.startswith(prefix[, start[, end]]); str.strip ([chars]); str.swapcase(); str.title(); str.translate(table[, deletechars]) Python 2.x; str.translate(table) Python 3.x; str.upper(); str.zfill(width); Print Statement; Python 2.x String Formatting; Python 3.x String Formatting; Chapter 5: Conditional Statements.