Retourner au contenu associé (sondage : J'indente mon code source avec)
Posté par gregR ☯ (site web personnel) le 21 octobre 2010 à 11:04. En réponse au sondage J'indente mon code source avec. Évalué à 2.
http://gregr.fr
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
[^] # Re: ×ばつ] Je fais du Python
Posté par gregR ☯ (site web personnel) . En réponse au sondage J'indente mon code source avec. Évalué à 2.
C'est dans la PEP 8
http://www.python.org/dev/peps/pep-0008/
Use 4 spaces per indentation level.
Tabs or Spaces?
Never mix tabs and spaces.
The most popular way of indenting Python is with spaces only. The
second-most popular way is with tabs only.
Les espaces sont recommandés pour les nouveaux projets
For new projects, spaces-only are strongly recommended over tabs.
http://gregr.fr