per page, with , order by , clip by
Results of 1 - 10 of about 47 for indices (0.011 sec.)
itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 13802
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効 ... 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 indice ... s [ i ] != i + n - r : break else : return indices [ i ] += 1 for j in range ( i + 1 , r ): indices [ j ] = indices [ j - 1 ] + 1 yield tuple ( pool [ i ] for i in indices ) ... inations_with_replacement('ABC', 2) → AA AB AC BB BC CC pool = tuple ( iterable ) n = len ( pool ) 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 ] != ...
https://man.mtool.work/python/3.14/library/itertools.html
itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 13802
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効 ... 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 indice ... s [ i ] != i + n - r : break else : return indices [ i ] += 1 for j in range ( i + 1 , r ): indices [ j ] = indices [ j - 1 ] + 1 yield tuple ( pool [ i ] for i in indices ) ... inations_with_replacement('ABC', 2) → AA AB AC BB BC CC pool = tuple ( iterable ) n = len ( pool ) 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 ] != ...
https://man.mtool.work/python/3.14/library/itertools.html
スライスオブジェクト (slice object) — Python 3.14.8 ドキュメント 10503
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » スライスオブジェクト (slice object) テーマ 自動 ライト ダーク | スライスオブジェクト ... or the corresponding attribute. Return NULL with an exception set if the new object could not be allocated. int PySlice_GetIndices ( PyObject * slice , Py_ssize_t length , Py_ssize_t * start , Py_ssize_t * stop , Py_ssize_t * step ) ¶ 次に属します: Stab ... 大きなインデクスになるとエラーとして扱います。 Returns 0 on success and -1 on error with no exception set (unless one of the indices was not None and failed to be converted to an integer, in which case -1 is returned with an exception set). おそらく、あな ... たはこの関数を使いたくないでしょう。 バージョン 3.2 で変更: 以前は、 slice 引数の型は PySliceObject* でした。 int PySlice_GetIndicesEx ( PyObject * slice , Py_ssize_t length , Py_ssize_t * start , Py_ssize_t * stop , Py_ssize_t * step , Py_ssize_t * slice ...
https://man.mtool.work/python/3.14/c-api/slice.html
スライスオブジェクト (slice object) — Python 3.14.8 ドキュメント 9865
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » スライスオブジェクト (slice object) テーマ 自動 ライト ダーク | スライスオブジェクト ... or the corresponding attribute. Return NULL with an exception set if the new object could not be allocated. int PySlice_GetIndices ( PyObject * slice , Py_ssize_t length , Py_ssize_t * start , Py_ssize_t * stop , Py_ssize_t * step ) ¶ 次に属します: Stab ... 大きなインデクスになるとエラーとして扱います。 Returns 0 on success and -1 on error with no exception set (unless one of the indices was not None and failed to be converted to an integer, in which case -1 is returned with an exception set). おそらく、あな ... たはこの関数を使いたくないでしょう。 バージョン 3.2 で変更: 以前は、 slice 引数の型は PySliceObject* でした。 int PySlice_GetIndicesEx ( PyObject * slice , Py_ssize_t length , Py_ssize_t * start , Py_ssize_t * stop , Py_ssize_t * step , Py_ssize_t * slice ...
https://man.mtool.work/python/3.14/c-api/slice.html
バッファプロトコル (buffer Protocol) — Python 3.14.8 ドキュメント 8922
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » バッファプロトコル (buffer Protocol) テーマ 自動 ライト ダーク | バッファプロト ... 列として解釈されます。 そうでない場合は、利用者は次のように n 次元配列にアクセスしなければなりません: ptr = ( char * ) buf + indices [ 0 ] * strides [ 0 ] + ... + indices [ n -1 ] * strides [ n -1 ]; item = * (( typeof ( item ) * ) ptr ); 上記のように、 b ... す関数です: void * get_item_pointer ( int ndim , void * buf , Py_ssize_t * strides , Py_ssize_t * suboffsets , Py_ssize_t * indices ) { char * pointer = ( char * ) buf ; int i ; for ( i = 0 ; i < ndim ; i ++ ) { pointer += strides [ i ] * indices [ i ]; ... の場合は 0 を返します。 この関数は常に成功します。 void * PyBuffer_GetPointer ( const Py_buffer * view , const Py_ssize_t * indices ) ¶ 次に属します: Stable ABI (バージョン 3.11 より). 与えられた view 内にある indices が指すメモリ領域を取得します。 indic ...
https://man.mtool.work/python/3.14/c-api/buffer.html
バッファプロトコル (buffer Protocol) — Python 3.14.8 ドキュメント 8922
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » バッファプロトコル (buffer Protocol) テーマ 自動 ライト ダーク | バッファプロト ... 列として解釈されます。 そうでない場合は、利用者は次のように n 次元配列にアクセスしなければなりません: ptr = ( char * ) buf + indices [ 0 ] * strides [ 0 ] + ... + indices [ n -1 ] * strides [ n -1 ]; item = * (( typeof ( item ) * ) ptr ); 上記のように、 b ... す関数です: void * get_item_pointer ( int ndim , void * buf , Py_ssize_t * strides , Py_ssize_t * suboffsets , Py_ssize_t * indices ) { char * pointer = ( char * ) buf ; int i ; for ( i = 0 ; i < ndim ; i ++ ) { pointer += strides [ i ] * indices [ i ]; ... の場合は 0 を返します。 この関数は常に成功します。 void * PyBuffer_GetPointer ( const Py_buffer * view , const Py_ssize_t * indices ) ¶ 次に属します: Stable ABI (バージョン 3.11 より). 与えられた view 内にある indices が指すメモリ領域を取得します。 indic ...
https://man.mtool.work/python/3.14/c-api/buffer.html
tkinter --- Tcl/Tk の Python インターフェース — Python 3.14.8 ドキュメント 8390
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » tkinter --- Tcl/Tk の Python インターフェース テーマ 自動 ライト ダーク | tkinter --- Tcl/Tk の ... nd 'sel.last' (the ends of the selection), or @x (the character covering pixel x-coordinate x in the window). Out-of-range indices are rounded to the nearest legal value. delete ( first , last = None ) ¶ Delete the characters from index first up to but ... t after it), or @x,y (the item covering pixel coordinates x , y in the listbox window). Arguments named first and last are indices of the same forms. insert ( index , * elements ) ¶ Insert the given elements as new items just before the item given by in ... focus, and its index may be retrieved with the 'active' index. curselection ( ) ¶ Return a tuple containing the numerical indices of all of the items that are currently selected, or an empty tuple if no items are selected. selection_anchor ( index ) ¶ ...
https://man.mtool.work/python/3.14/library/tkinter.html
random --- 疑似乱数を生成する — Python 3.14.8 ドキュメント 7858
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » random --- 疑似乱数を生成する テーマ 自動 ライト ダーク | random --- 疑似乱数を生成する ¶ ソースコード: Lib/ ... n ( iterable , r ): "Random selection from itertools.combinations(iterable, r)" pool = tuple ( iterable ) n = len ( pool ) indices = sorted ( random . sample ( range ( n ), r )) return tuple ( pool [ i ] for i in indices ) def random_combination_with_re ... # Result will be in set(itertools.combinations_with_replacement(iterable, r)). pool = tuple ( iterable ) n = len ( pool ) indices = sorted ( random . choices ( range ( n ), k = r )) return tuple ( pool [ i ] for i in indices ) def random_derangement ( ...
https://man.mtool.work/python/3.14/library/random.html
random --- 疑似乱数を生成する — Python 3.14.8 ドキュメント 7858
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » random --- 疑似乱数を生成する テーマ 自動 ライト ダーク | random --- 疑似乱数を生成する ¶ ソースコード: Lib/ ... n ( iterable , r ): "Random selection from itertools.combinations(iterable, r)" pool = tuple ( iterable ) n = len ( pool ) indices = sorted ( random . sample ( range ( n ), r )) return tuple ( pool [ i ] for i in indices ) def random_combination_with_re ... # Result will be in set(itertools.combinations_with_replacement(iterable, r)). pool = tuple ( iterable ) n = len ( pool ) indices = sorted ( random . choices ( range ( n ), k = r )) return tuple ( pool [ i ] for i in indices ) def random_derangement ( ...
https://man.mtool.work/python/3.14/library/random.html
What's New in Python 2.3 — Python 3.14.8 ドキュメント 7646
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.3 テーマ 自動 ライト ダーク | What's New in Python 2.3 ¶ 著者 : A.M. Kuchling この文書は Python 2.3 の新機能について ... ( 0 , 5 , 2 )] [0, 2, 4] To simplify implementing sequences that support extended slicing, slice objects now have a method indices(length) which, given the length of a sequence, returns a (start, stop, step) tuple that can be passed directly to range() ... . indices() handles omitted and out-of-bounds indices in a manner consistent with regular slices (and this innocuous phrase hides a ... this: class FakeSeq : ... def calc_item ( self , i ): ... def __getitem__ ( self , item ): if isinstance ( item , slice ): indices = item . indices ( len ( self )) return FakeSeq ([ self . calc_item ( i ) for i in range ( * indices )]) else : return sel ...
https://man.mtool.work/python/3.14/whatsnew/2.3.html
PREV 1 2 3 4 5 NEXT