per page, with , order by , clip by
Results of 1 - 10 of about 294 for range (0.012 sec.)
組み込み型 — Python 3.14.8 ドキュメント 9059
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » 組み込み型 テーマ 自動 ライト ダーク | 組み込み型 ¶ 以下のセクションでは、インタプリタに組み込まれている標準型について記述します。 主 ... 数値型におけるゼロ: 0 , 0.0 , 0j , Decimal(0) , Fraction(0, 1) 空のシーケンスまたはコレクション: '' , () , [] , {} , set() , range(0) ブール値の結果を返す演算および組み込み関数は、特に注釈のない限り常に偽値として 0 または False を返し、真値として 1 また ... す。 次と等価です: def to_bytes ( n , length = 1 , byteorder = 'big' , signed = False ): if byteorder == 'little' : order = range ( length ) elif byteorder == 'big' : order = reversed ( range ( length )) else : raise ValueError ( "byteorder must be eit ... sys.hash_info.imag * hash(z.imag) の 2**sys.hash_info.width を法とする還元を計算することにより組み合わせられ、よってこれは range(-2**(sys.hash_info.width - 1), 2**(sys.hash_info.width - 1)) に収まります。再び、結果が -1 なら、 -2 で置き換えられます。 ...
https://man.mtool.work/python/3.14/builtins/stdtypes.html
itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 8545
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効 ... ation. およそ次と等価です: def combinations ( iterable , r ): # combinations('ABCD', 2) → AB AC AD BC BD CD # combinations(range(4), 3) → 012 013 023 123 pool = tuple ( iterable ) n = len ( pool ) if r > n : return indices = list ( range ( r )) yield ... tuple ( pool [ i ] for i in indices ) while True : for i in reversed ( range ( r )): if indices [ i ] != i + n - r : break else : return indices [ i ] += 1 for j in range ( i + 1 , r ): indices [ j ] ... ) if not n and r : return indices = [ 0 ] * r yield tuple ( pool [ i ] for i in indices ) while True : for i in reversed ( range ( r )): if indices [ i ] != n - 1 : break else : return indices [ i :] = [ indices [ i ] + 1 ] * ( r - i ) yield tuple ( p ...
https://man.mtool.work/python/3.14/library/itertools.html
random --- 疑似乱数を生成する — Python 3.14.8 ドキュメント 8545
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » random --- 疑似乱数を生成する テーマ 自動 ライト ダーク | random --- 疑似乱数を生成する ¶ ソースコード: Lib/ ... を使用しないでください。代わりに secrets.token_bytes() を使用してください。 Added in version 3.9. 整数用の関数 ¶ random. randrange ( stop ) ¶ random. randrange ( start , stop [ , step ] ) range(start, stop, step) の要素からランダムに選ばれた要素を返しま ... す。 This is roughly equivalent to choice(range(start, stop, step)) but supports arbitrarily large ranges and is optimized for common cases. 位置引数のパターンは range() ... 引数と一致します。 Keyword arguments should not be used because they can be interpreted in unexpected ways. For example randrange(start=100) is interpreted as randrange(0, 100, 1) . バージョン 3.2 で変更: 一様に分布した値の生成に関して randrange() がよ ...
https://man.mtool.work/python/3.14/library/random.html
itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 8545
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効 ... ation. およそ次と等価です: def combinations ( iterable , r ): # combinations('ABCD', 2) → AB AC AD BC BD CD # combinations(range(4), 3) → 012 013 023 123 pool = tuple ( iterable ) n = len ( pool ) if r > n : return indices = list ( range ( r )) yield ... tuple ( pool [ i ] for i in indices ) while True : for i in reversed ( range ( r )): if indices [ i ] != i + n - r : break else : return indices [ i ] += 1 for j in range ( i + 1 , r ): indices [ j ] ... ) if not n and r : return indices = [ 0 ] * r yield tuple ( pool [ i ] for i in indices ) while True : for i in reversed ( range ( r )): if indices [ i ] != n - 1 : break else : return indices [ i :] = [ indices [ i ] + 1 ] * ( r - i ) yield tuple ( p ...
https://man.mtool.work/python/3.14/library/itertools.html
random --- 疑似乱数を生成する — Python 3.14.8 ドキュメント 8545
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » random --- 疑似乱数を生成する テーマ 自動 ライト ダーク | random --- 疑似乱数を生成する ¶ ソースコード: Lib/ ... を使用しないでください。代わりに secrets.token_bytes() を使用してください。 Added in version 3.9. 整数用の関数 ¶ random. randrange ( stop ) ¶ random. randrange ( start , stop [ , step ] ) range(start, stop, step) の要素からランダムに選ばれた要素を返しま ... す。 This is roughly equivalent to choice(range(start, stop, step)) but supports arbitrarily large ranges and is optimized for common cases. 位置引数のパターンは range() ... 引数と一致します。 Keyword arguments should not be used because they can be interpreted in unexpected ways. For example randrange(start=100) is interpreted as randrange(0, 100, 1) . バージョン 3.2 で変更: 一様に分布した値の生成に関して randrange() がよ ...
https://man.mtool.work/python/3.14/library/random.html
組み込み型 — Python 3.14.8 ドキュメント 8459
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » 組み込み型 テーマ 自動 ライト ダーク | 組み込み型 ¶ 以下のセクションでは、インタプリタに組み込まれている標準型について記述します。 主 ... 数値型におけるゼロ: 0 , 0.0 , 0j , Decimal(0) , Fraction(0, 1) 空のシーケンスまたはコレクション: '' , () , [] , {} , set() , range(0) ブール値の結果を返す演算および組み込み関数は、特に注釈のない限り常に偽値として 0 または False を返し、真値として 1 また ... す。 次と等価です: def to_bytes ( n , length = 1 , byteorder = 'big' , signed = False ): if byteorder == 'little' : order = range ( length ) elif byteorder == 'big' : order = reversed ( range ( length )) else : raise ValueError ( "byteorder must be eit ... sys.hash_info.imag * hash(z.imag) の 2**sys.hash_info.width を法とする還元を計算することにより組み合わせられ、よってこれは range(-2**(sys.hash_info.width - 1), 2**(sys.hash_info.width - 1)) に収まります。再び、結果が -1 なら、 -2 で置き換えられます。 ...
https://man.mtool.work/python/3.14/builtins/stdtypes.html
4. その他の制御フローツール — Python 3.14.8 ドキュメント 8373
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 4. その他の制御フローツール テーマ 自動 ライト ダーク | 4. その他の制御フローツール ¶ 前章で紹介した while 文の他にも、 Python にはいくつ ... ン作成 active_users = {} for user , status in users . items (): if status == 'active' : active_users [ user ] = status 4.3. range() 関数 ¶ 数列にわたって反復を行う必要がある場合、組み込み関数 range() が便利です。この関数は算術型の数列を生成します: >>> ... for i in range ( 5 ): ... print ( i ) ... 0 1 2 3 4 指定した終端値は生成されるシーケンスには入りません。 range(10) は 10 個の値を生成し、 ... 長さ 10 のシーケンスにおける各項目のインデクスとなります。range を別の数から開始したり、他の増加量 (負でも; 増加量は時に 'ステップ(step)' と呼ばれることもあります) を指定することもできま ...
https://man.mtool.work/python/3.14/tutorial/controlflow.html
4. その他の制御フローツール — Python 3.14.8 ドキュメント 8373
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 4. その他の制御フローツール テーマ 自動 ライト ダーク | 4. その他の制御フローツール ¶ 前章で紹介した while 文の他にも、 Python にはいくつ ... ン作成 active_users = {} for user , status in users . items (): if status == 'active' : active_users [ user ] = status 4.3. range() 関数 ¶ 数列にわたって反復を行う必要がある場合、組み込み関数 range() が便利です。この関数は算術型の数列を生成します: >>> ... for i in range ( 5 ): ... print ( i ) ... 0 1 2 3 4 指定した終端値は生成されるシーケンスには入りません。 range(10) は 10 個の値を生成し、 ... 長さ 10 のシーケンスにおける各項目のインデクスとなります。range を別の数から開始したり、他の増加量 (負でも; 増加量は時に 'ステップ(step)' と呼ばれることもあります) を指定することもできま ...
https://man.mtool.work/python/3.14/tutorial/controlflow.html
イテレータオブジェクト (iterator object) — Python 3.14.8 ドキュメント 7517
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » イテレータオブジェクト (iterator object) テーマ 自動 ライト ダーク | イテレータオブジ ... オブジェクトを返さなければなりません。生成されたイテレータは、 callable が sentinel に等しい値を返すと反復処理を終了します。 Range Objects ¶ PyTypeObject PyRange_Type ¶ 次に属します: Stable ABI . The type object for range objects. int PyRange_Check ( Py ... Object * o ) ¶ Return true if the object o is an instance of a range object. This function always succeeds. Builtin Iterator Types ¶ These are built-in iteration types that are included in Py ... ject PySetIter_Type ¶ 次に属します: Stable ABI . PyTypeObject PyTupleIter_Type ¶ 次に属します: Stable ABI . PyTypeObject PyRangeIter_Type ¶ 次に属します: Stable ABI . PyTypeObject PyLongRangeIter_Type ¶ 次に属します: Stable ABI . PyTypeObject PyDictIt ...
https://man.mtool.work/python/3.14/c-api/iterator.html
イテレータオブジェクト (iterator object) — Python 3.14.8 ドキュメント 7517
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » イテレータオブジェクト (iterator object) テーマ 自動 ライト ダーク | イテレータオブジ ... オブジェクトを返さなければなりません。生成されたイテレータは、 callable が sentinel に等しい値を返すと反復処理を終了します。 Range Objects ¶ PyTypeObject PyRange_Type ¶ 次に属します: Stable ABI . The type object for range objects. int PyRange_Check ( Py ... Object * o ) ¶ Return true if the object o is an instance of a range object. This function always succeeds. Builtin Iterator Types ¶ These are built-in iteration types that are included in Py ... ject PySetIter_Type ¶ 次に属します: Stable ABI . PyTypeObject PyTupleIter_Type ¶ 次に属します: Stable ABI . PyTypeObject PyRangeIter_Type ¶ 次に属します: Stable ABI . PyTypeObject PyLongRangeIter_Type ¶ 次に属します: Stable ABI . PyTypeObject PyDictIt ...
https://man.mtool.work/python/3.14/c-api/iterator.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT