Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 17 for Template (0.007 sec.)
35.10. pipes --- シェルパイプラインへのインタフェース — Python 3.6.5 ドキュメン... 14414
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ールでは、以下のクラスを定義しています: class pipes. Template ¶ パイプラインを抽象化したクラス。 以下はプログラム ... 例です: >>> import pipes >>> t = pipes . Template () >>> t . append ( 'tr a-z A-Z' , '--' ) >>> f = ... プレートオブジェクトは以下のメソッドを持っています: Template. reset ( ) ¶ パイプラインテンプレートを初期状態に戻 ... します。 Template. clone ( ) ¶ 元のパイプラインテンプレートと等価の新 ...
https://man.plustar.jp/python/library/pipes.html - [similar]
6.1. string --- 一般的な文字列操作 — Python 3.6.5 ドキュメント 11380
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 13 1011 6.1.4. テンプレート文字列 ¶ テンプレート (template) を使うと、 PEP 292 で解説されているようにより簡潔 ... string モジュールでは、上記のような規則を実装した Template クラスを提供しています。 Template のメソッドを以下 ... に示します: class string. Template ( template ) ¶ コンストラクタはテンプレート文字列に ... 何も警告せずに無視するため、安全とはいえないのです。 Template のインスタンスは、次のような public な属性を提供し ...
https://man.plustar.jp/python/library/string.html - [similar]
11. 標準ライブラリミニツアー --- その 2 — Python 3.6.5 ドキュメント 9638
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア ... で、エンドユーザが簡単に編集できる簡単な構文を備えた Template クラスが入っています。このクラスを使うと、ユーザが ... $ 自体をエスケープできます: >>> from string import Template >>> t = Template ( '$ {village} folk send $$10 to ... te() メソッドを使う方が適切かもしれません: >>> t = Template ( 'Return the $item to $owner.' ) >>> d = dict ( i ... ow to $owner.' 区切り文字はデフォルトは $ ですが、 Template のサブクラスを派生すると変更することができます。例 ...
https://man.plustar.jp/python/tutorial/stdlib2.html - [similar]
Logging クックブック — Python 3.6.5 ドキュメント 8983
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Logg ... thon には新しい文字列フォーマット機構として string.Template (Python 2.4 で追加) と str.format() (Python 2.6 で ... tyle 引数を指定することで、 str.format() か string.Template を使った format を指定する事ができます。次の例はこ ... と引数をマージしているので、 str.format() や string.Template を使って logging を呼び出す事はできません。既存の ... = kwargs def __str__ ( self ): from string import Template return Template ( self . fmt ) . substitute ( ** s ...
https://man.plustar.jp/python/howto/logging-cookbook.html - [similar]
Argument Clinic How-To — Python 3.6.5 ドキュメント 8104
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Argu ... e. The file destination takes an extra argument, a template to use for building the filename, like so: destina ... tion <name> new <type> <file_template> The template can use three strings internally tha ...
https://man.plustar.jp/python/howto/clinic.html - [similar]
What's New in Python 2.2 — Python 3.6.5 ドキュメント 8104
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... 早いです: >>> class C ( object ): ... __slots__ = ( 'template' , 'name' ) ... >>> obj = C () >>> print obj . tem ... plate None >>> obj . template = 'Test' >>> print obj . template Test >>> obj . n ...
https://man.plustar.jp/python/whatsnew/2.2.html - [similar]
16.6. logging --- Python 用ロギング機能 — Python 3.6.5 ドキュメント 8000
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... れるかを決めます: %-format 、 str.format() 、 string.Template のうちのどれかが使用されます。ログメッセージに使用 ... me} を使うことができます。 $-フォーマット ( string.Template ) を使用している場合は、 ${attrname} 形式にしてくだ ... {' or '$' for %-formatting, str.format() or string.Template respectively, and defaulting to '%' if not specifi ...
https://man.plustar.jp/python/library/logging.html - [similar]
What's New in Python 2.4 — Python 3.6.5 ドキュメント 8000
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... るのは難しいのです。 PEP 292 は string モジュールに Template クラスを追加します。これは置換を指示するのに $ を使 ... います: >>> import string >>> t = string . Template ( '$page: $title' ) >>> t . substitute ({ 'page' : ... もあり、これはキー不在を無視します: >>> t = string . Template ( '$page: $title' ) >>> t . safe_substitute ({ 'pa ...
https://man.plustar.jp/python/whatsnew/2.4.html - [similar]
4. ソースコード配布物を作成する — Python 3.6.5 ドキュメント 7897
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python モジュールの ... T.in と呼ばれる マニフェストテンプレート (manifest template) を使ってこれを行います。マニフェストテンプレートは ...
https://man.plustar.jp/python/distutils/sourcedist.html - [similar]
19.1.3. email.generator: MIME 文書の生成 — Python 3.6.5 ドキュメント 7897
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ed in the output stream by a string derived from a template filled in with information about the part. class e ...
https://man.plustar.jp/python/library/email.generator.html - [similar]
PREV 1 2 NEXT