Outils pour utilisateurs

Outils du site


python:programmes:indentation

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
python:programmes:indentation [2012/02/11 22:56] rootpython:programmes:indentation [2013/03/12 23:06] (Version actuelle) root
Ligne 8: Ligne 8:
   ./reindent.py toto.py new_toto.py space 3   ./reindent.py toto.py new_toto.py space 3
  
-<code>+<code python reindent.py>
 #!/usr/bin/env python #!/usr/bin/env python
  
Ligne 16: Ligne 16:
         print(sys.argv[0] + \         print(sys.argv[0] + \
         """ <source file> <new indent file> [type_indent] [count]         """ <source file> <new indent file> [type_indent] [count]
-        where type indent is : +        where type_indent is : 
-                * tab for adding tabs+                * tab for adding tabs (default)
                 * space for adding spaces                 * space for adding spaces
 +
 +        where count is the number of type_indent :
 +                * int (1 by default)
                  
         Ex : """ + sys.argv[0]+ """ file.py new_indent_file.py space 4  """)         Ex : """ + sys.argv[0]+ """ file.py new_indent_file.py space 4  """)
python/programmes/indentation.1329001009.txt.gz · Dernière modification : 2012/02/11 22:56 de root