User Tools

Site Tools


python_cheat_sheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
python_cheat_sheet [2014/04/01 16:25] ginkopython_cheat_sheet [2015/01/02 13:03] (current) ginko
Line 46: Line 46:
   * Prompt au shell: <code python>foo=raw_input("The Ultimate Question of Life, the Universe, and Everything")</code>NB: il existe également input(), avec laquelle python essaie de deviner le type de la variable entrée. raw_input() se contente de mettre ça dans une string.   * Prompt au shell: <code python>foo=raw_input("The Ultimate Question of Life, the Universe, and Everything")</code>NB: il existe également input(), avec laquelle python essaie de deviner le type de la variable entrée. raw_input() se contente de mettre ça dans une string.
  
 +Pour travavailler avec les chemins de fichiers : ''os.path'' et notamment ''os.path.join''.
 ===== Structure de code ===== ===== Structure de code =====
   * Boucle ''for'' <code python>#pour i de 1 à 5   * Boucle ''for'' <code python>#pour i de 1 à 5
python_cheat_sheet.txt · Last modified: 2015/01/02 13:03 by ginko