python:programmes:indentation
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| python:programmes:indentation [2012/02/11 22:54] – root | python:programmes:indentation [2013/03/12 23:06] (Version actuelle) – root | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== Réindenter un script Python ====== | ====== Réindenter un script Python ====== | ||
| - | Ce script permet de réindenter un script python avec au choix les tabulation | + | Ce script permet de réindenter un script python avec au choix les tabulations |
| ./ | ./ | ||
| Ligne 8: | Ligne 8: | ||
| ./ | ./ | ||
| - | < | + | < |
| # | # | ||
| Ligne 16: | Ligne 16: | ||
| print(sys.argv[0] + \ | print(sys.argv[0] + \ | ||
| """ | """ | ||
| - | where type indent | + | where type_indent |
| - | * 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 : """ | Ex : """ | ||
python/programmes/indentation.1329000855.txt.gz · Dernière modification : de root
