The Python Quick Syntax Reference

The Python Quick Syntax Reference is the "go to" book that contains an easy to read and use guide to Python programming and development. This condensed code and syntax reference presents the Python language in a well-organized format designed to be used time and again. You won't find...

Descripción completa

Detalles Bibliográficos
Autor principal: Walters, Gregory. author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Berkeley, CA : Apress 2014.
Edición:1st ed. 2014.
Colección:Expert's Voice in Python
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629533406719
Tabla de Contenidos:
  • ""Contents at a Glance""; ""Contents""; ""About the Author""; ""About the Technical Reviewer""; ""Acknowledgments""; ""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)""; ""!=""; """"; "">""; ""=""; ""<=""; ""Assignment Operators""; ""=""; ""+=""; ""â??=""; ""*=""; ""/=""; ""%=""; ""**=""; ""//=""; ""Logical Operators""; ""and""; ""or""; ""not""
  • ""Membership and Identity Operators""""In""; ""not in""; ""is""; ""is not""; ""Bitwise Operators""; ""&""; ""|""; ""^""; ""~""; "">""; ""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]])""; ""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""