PDF4PRO ⚡AMP

Modern search engine that looking for books and documents around the web

Example: tourism industry

Mémento Python 3 - LIMSI

Indexation conteneurs s quencesTypes de baseM mento Python 3 2012-2017 - Laurent PointalLicence Creative Commons Paternit 4 Derni re version sur : "Un\nDeux"'L\' me'str"""X\tY\tZ1\t2\t3""" 10-6tabulation chapp eretour la ligne chapp Cha ne multiligne :Types conteneurslist[1,5,9]["x",11, ]["mot"][]tuple(1,5,9)11,"y", ("mot",)()dict{1:"un",3:"trois",2:"deux" , :" "}{"cl ":"valeur"}set{}{1,9,3,0} s quences ordonn es, acc s par index rapide, valeurs r p tablesset() conteneurs cl s, sans ordre a priori, acc s par cl rapide, chaque cl unique{"cl 1","cl 2"}Valeurs non modifiables (immutables)x= +8+sin(y)y,z,r= , ,0 suivi de accents possibles mais viter mots cl s du langage interdits distinction casse min/MAJ expression juste avec des virgules tupledictionnaireensembleentier,flottant ,bool en,cha ne,octets a toto x7 y_max BigOne 8y and forx+=3x-=2incr mentation x=x+3 d cr mentation x=x-2 Conversionspour les listes, tuples, cha nes de caract res, int("15") 15type(expression)int("3f",16) 63sp cification de la base du nombre entier en 2nd param treint( ) 15troncature de la partie d cimalefloat(" ") ( ,1) 1 d cimale (0 d cimale nb entier)bool(x)False pour x z ro, x conteneur vide, x None ou False ; True pour autres x str(x) ".

entiers : b binaire, c caractère, d décimal (défaut), o octal, x ou X hexa… flottant : e ou E exponentielle, f ou F point fixe, g ou G approprié (défaut), chaîne : s … % pourcentage Formatage : car-rempl. alignement signe larg.mini.précision~larg.max type + - espace Opérations sur dictionnaires Opérateurs : | → union (caractère ...

Loading..

Tags:

  Python, Points

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Spam in document Broken preview Other abuse

Transcription of Mémento Python 3 - LIMSI

Related search queries