Results of 1 - 6 of about 6 for cheese (0.005 sec.)
- string.templatelib --- テンプレート文字列リテラルのサポート 13197
- string.templatelib --- テンプレート文字列リテラルのサポート ソースコード: Lib/string/templatelib.py 参考 フォーマット済み文字列リテラル テンプレート文字列リテラル(t-string)の構文 PEP 750 テンプレート文字列 Added in version 3.14. テンプレート
...プレート文字列リテラルの構文 を使うことです。 この構文は、 f の代わりに t を前に付ける点を除いて、 f 文字列 と同じです。 >>> cheese = 'Red Leicester' >>> template = t "We're fresh out of { cheese } , sir." >>> type ( template ) <class 'string.templatelib...ル部分の strings と動的な部分の interpolations のシーケンスとして格納されます。 values 属性は補間される値を保持します。 >>> cheese = 'Camembert' >>> template = t 'Ah! We do have { cheese } .' >>> template . strings ('Ah! We do have ', '.') >>> template...'.' ) template . values : ( 'Camembert' , ) 属性 strings : tuple [ str , ... ] テンプレート内の静的な文字列の tuple 。 >>> cheese = 'Camembert' >>> template = t 'Ah! We do have { cheese } .' >>> template . strings ('Ah! We do have ', '.') タプルには空文... - https://man.mtool.work/python/3.14/library/string.templatelib.html
- 13. さあ何を? 8609
- 13. さあ何を? このチュートリアルを読んだことで、おそらく Python を使ってみようという関心はますます強くなったことでしょう --- 現実世界の問題を解決するために、Python を適用してみたくなったはずです。さて、それではどこで勉強をしたらよいのでしょ
...s.python.org : Pythonドキュメントへの素早いアクセスを提供します。 https://pypi.org : Python パッケージインデックス、以前は Cheese Shop [ 1 ] という愛称でも呼ばれていました。これは、ユーザ作成のダウンロードできる Python モジュールの索引です。コードのリリ...は繰り返し取り上げられる多くの質問に答えています。あなたの問題に対する解決が既に含まれているかもしれません。 脚注 [ 1 ] 「Cheese Shop」はモンティ・パイソンの寸劇です。 チーズ店に入った客がどのチーズを注文しても、店員は品切れだと答えます。 他のマニュア... - https://man.mtool.work/python/3.14/tutorial/whatnow.html
- What's new in Python 3.14 8298
- What's new in Python 3.14 エディタ : Adam Turner と Hugo van Kemenade この記事では Python 3.13 と比較した Python 3.14 の新機能を解説します。Python 3.14 は2025年10月7日にリリースされました。全詳細については 変更履歴 をご覧ください。 参考 PEP
...くには、プレフィックスとして 'f' の代わりに 't' を使用します: >>> variety = 'Stilton' >>> template = t 'Try some { variety } cheese!' >>> type ( template ) <class 'string.templatelib.Template'> Template オブジェクトでは、文字列の固定部分と補間部分 (波括弧...反復すると、各部分を順に取得できます。 >>> list ( template ) ['Try some ', Interpolation('Stilton', 'variety', None, ''), ' cheese!'] Template インスタンスを処理するコードは、簡単に書いたり呼び出したりできます。 例えば、次の関数は固定部分を小文字に、 In...) 関数なら、HTML 属性の dict をテンプレート内で直接受け取れます。 attributes = { 'src' : 'limburger.jpg' , 'alt' : 'lovely cheese' } template = t '<img { attributes } >' assert html ( template ) == '<img src="limburger.jpg" alt="lovely cheese" />' もち... - https://man.mtool.work/python/3.14/whatsnew/3.14.html
- 4. その他の制御フローツール 8262
- 4. その他の制御フローツール 前章で紹介した while 文の他にも、 Python にはいくつか制御フローツールがあり、本章で説明します。 4.1. if 文 おそらく最もおなじみの文型は if 文でしょう。例えば: >>> x = int ( input ( "Please enter an integer: " ))
...ます) と組み合わせられます。 ( *name は **name より前になければなりません)。 例えば、ある関数の定義を以下のようにすると: def cheeseshop ( kind , * arguments , ** keywords ): print ( "-- Do you have any" , kind , "?" ) print ( "-- I'm sorry, we're all out...ts : print ( arg ) print ( "-" * 40 ) for kw in keywords : print ( kw , ":" , keywords [ kw ]) 呼び出しは以下のようになり: cheeseshop ( "Limburger" , "It's very runny, sir." , "It's really very, VERY runny, sir." , shopkeeper = "Michael Palin" , client...= "John Cleese" , sketch = "Cheese Shop Sketch" ) もちろん以下のように出力されます: -- Do you have any Limburger ? -- I'm sorry, we're all out of Limburger I... - https://man.mtool.work/python/3.14/tutorial/controlflow.html
- sqlite3 --- SQLite データベース用の DB-API 2.0 インターフェース 8225
- sqlite3 --- SQLite データベース用の DB-API 2.0 インターフェース ソースコード: Lib/sqlite3/ SQLite は、軽量なディスク上のデータベースを提供する C ライブラリです。別のサーバプロセスを用意する必要なく、 SQL クエリー言語の非標準的な一種を使用し
...ingredients)" ) con . executescript ( """ INSERT INTO recipe (name, ingredients) VALUES('broccoli stew', 'broccoli peppers cheese tomatoes'); INSERT INTO recipe (name, ingredients) VALUES('pumpkin stew', 'pumpkin onions garlic celery'); INSERT INTO rec...ipe (name, ingredients) VALUES('broccoli pie', 'broccoli cheese onions flour'); INSERT INTO recipe (name, ingredients) VALUES('pumpkin pie', 'pumpkin sugar flour butter'); """ ) for row... - https://man.mtool.work/python/3.14/library/sqlite3.html
- compression.zstd --- Zstandard 形式に対応した圧縮 8189
- compression.zstd --- Zstandard 形式に対応した圧縮 Added in version 3.14. ソースコード: Lib/compression/zstd/__init__.py このモジュールは、Zstandard (または zstd ) 圧縮アルゴリズムを使ってデータを圧縮・展開するクラスと関数を提供します。 zstd
...Parameter . window_log . bounds () options = { CompressionParameter . window_log : upper } compress ( b 'venezuelan beaver cheese' , options = options ) bounds ( ) 圧縮パラメータの整数の範囲を、タプル (lower, upper) として返します。 このメソッドは、範囲... - https://man.mtool.work/python/3.14/library/compression.zstd.html
PREV
1
NEXT