Results of 1 - 5 of about 5 for ints (0.006 sec.)
- 関数型プログラミング HOWTO 11508
- 関数型プログラミング HOWTO Author : A. M. Kuchling Release : 0.32 この文書では、関数型スタイルでプログラムを実装するのにピッタリな Python の機能を見てまわることにしましょう。まず関数型プログラミングという概念を紹介したあと、 iterator や gen
...ち、ジェネレータは続行できる関数と考えることができます。 ごく単純なジェネレータ関数の例がこちらにあります: >>> def generate_ints ( N ): ... for i in range ( N ): ... yield i yield キーワードを含む関数はすべてジェネレータ関数です; Python の bytecode コ...、ローカル変数が保持される点です。 次にジェネレータの __next__() メソッドを呼ぶと、関数の実行が再開されます。 上記 generate_ints() ジェネレータの使用例はこちらです: >>> gen = generate_ints ( 3 ) >>> gen <generator object generate_ints at ...> >>> next...>> next ( gen ) Traceback (most recent call last): File "stdin" , line 1 , in <module> File "stdin" , line 2 , in generate_ints StopIteration 同じく for i in generate_ints(5) や a, b, c = generate_ints(3) といった書き方もできます。 ジェネレータ関数の... - https://man.mtool.work/python/3.14/howto/functional.html
- What's New in Python 2.2 10111
- What's New in Python 2.2 著者 : A.M. Kuchling はじめに この文書は 2002 年 10 月 14 日にリリースされた Python 2.2.2 の新機能について解説します。Python 2.2.2 は 2001 年 12 月 21 日にリリースされた Python 2.2 のバグフィックスリリースです。 Pyt
...る機能です; すなわち、ジェネレータは続行できる関数と考えることができます。 ジェネレータ関数の最も単純な例です: def generate_ints ( N ): for i in range ( N ): yield i 新しいキーワード yield がジェネレータのために導入されました。 yield ステートメントを含...よって try/except/finally の一体化されるまでは、 finally の try と except の try が別物だったからです。---) 上記の generate_ints() ジェネレータはこんな具合に使います: >>> gen = generate_ints ( 3 ) >>> gen <generator object at 0x8117f90> >>> gen . next...>>> gen . next () Traceback (most recent call last): File "<stdin>" , line 1 , in ? File "<stdin>" , line 2 , in generate_ints StopIteration 同じく for i in generate_ints(5) や a,b,c = generate_ints(3) といった書き方もできます。 ジェネレータ関数内で... - https://man.mtool.work/python/3.14/whatsnew/2.2.html
- tokenize --- Python ソース用のトークナイザー 9192
- tokenize --- Python ソース用のトークナイザー ソースコード: Lib/tokenize.py The tokenize module provides a lexical scanner for Python source code, implemented in Python. The scanner in this module returns comments as tokens as well, making i
...In FSTRING_MIDDLE and TSTRING_MIDDLE tokens, doubled braces are replaced by single braces. start A 2-tuple (srow, scol) of ints specifying the inclusive start position of the token in the source. Rows are numbered from 1 and columns from 0. Columns c...ount Unicode code points; a tab counts as one column, without expanding it to a tab stop. For an ENCODING token, this is (0, 0) . end A 2-tuple (er...ow, ecol) of ints specifying the exclusive end position of the token. Rows are numbered from 1 and columns from 0. For a token spanning mult... - https://man.mtool.work/python/3.14/library/tokenize.html
- What's New in Python 2.3 9192
- What's New in Python 2.3 著者 : A.M. Kuchling この文書は Python 2.3 の新機能について解説します。Python 2.3 は 2003 年 7 月 29 日にリリースされました。 Python 2.3 の主要なテーマは、2.2 で追加されたいくつかの機能を磨くこと、言語中核に小さいな
...る機能です; すなわち、ジェネレータは続行できる関数と考えることができます。 ジェネレータ関数の最も単純な例です: def generate_ints ( N ): for i in range ( N ): yield i 新しいキーワード yield がジェネレータのために導入されました。 yield ステートメントを含...よって try/except/finally の一体化されるまでは、 finally の try と except の try が別物だったからです。---) 上記の generate_ints() ジェネレータはこんな具合に使います: >>> gen = generate_ints ( 3 ) >>> gen <generator object at 0x8117f90> >>> gen . next...() 2 >>> gen . next () Traceback (most recent call last): File "stdin" , line 1 , in ? File "stdin" , line 2 , in generate_ints StopIteration 同じく for i in generate_ints(5) や a,b,c = generate_ints(3) といった書き方もできます。 ジェネレータ関数内で... - https://man.mtool.work/python/3.14/whatsnew/2.3.html
- What's New In Python 3.13 5919
- What's New In Python 3.13 エディタ : Adam Turner と Thomas Wouters この記事では Python 3.12 と比較した Python 3.13 の新機能を解説します。Python 3.13 は2024年10月7日にリリースされました。全詳細については 変更履歴 をご覧ください。 参考 PEP 71
...て返せるようになりました。 (Serhiy Storchaka による gh-43457 での貢献。) Text.count() に省略可能なキーワード専用引数 return_ints が追加され、単一の int を返せるようになりました。 この引数を使わない場合、単一のカウントは 1 要素のタプルまたは None として...の debug_override パラメータは非推奨です。 代わりに optimization パラメータを使ってください。 importlib.metadata : EntryPoints のタプルインターフェース。 戻り値として暗黙的に None を返すこと。 logging : warn() メソッドは Python 3.3 から非推奨です。... - https://man.mtool.work/python/3.14/whatsnew/3.13.html
PREV
1
NEXT