タグ

codingとpythonに関するitomo8suのブックマーク (2)

  • Google Python Style Guide

    Revision 2.12 Amit Patel Antoine Picard Eugene Jhong Jeremy Hylton Matt Smart Mike Shields Each style point has a summary for which additional information is available by toggling the accompanying arrow button that looks this way: ▶. You may toggle all summaries with the big arrow button: Overview Important Note Displaying Hidden Details in this Guide ▶ This style guide contains many details

  • pythonのエンコーディング設定(Winodows)

    1   文字コード Pythonでは文字コードに関わる部分は以下の3つである。 入出力は以下の3つの優先順にエンコーディングを決定する。 内部処理コード ソースコード・エンコーディング 入出力データのエンコーディング 処理の際に指定したエンコーディング localeのエンコーディング デフォルトエンコーディング 3   ソースコード・エンコーディング Python 2.3からスクリプトファイルのエンコーディングを指定可能。 指定方法は、ファイルの1行目もしくは2行目に以下のどちらかで指定する。 # coding: エンコード名 もしくは、 # coding=エンコード名 また、前後に余計な文字を指定することも可能。 エンコード名は、ファイルを保存する際に指定したエンコードを指定する。 ユニコードの文字列リテラルは、ファイル内に書かれている以上 あるエンコードで書かれているはずだが、 上記で

  • 1