per page, with , order by , clip by
Results of 1 - 10 of about 217 for (' (0.012 sec.)
decimal --- 10進固定小数点と浮動小数点の演算 — Python 3.14.8 ドキュメント 10169
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » decimal --- 10進固定小数点と浮動小数点の演算 テーマ 自動 ライト ダーク | decimal --- 10進固定小数点と浮動小数 ... 問題解決に十分な大きさです: >>> from decimal import * >>> getcontext () . prec = 6 >>> Decimal ( 1 ) / Decimal ( 7 ) Decimal('0.142857') >>> getcontext () . prec = 28 >>> Decimal ( 1 ) / Decimal ( 7 ) Decimal('0.1428571428571428571428571429') 二進と ... aN や正負の Infinity (無限大)、 -0 といった特殊な値も表現できます: >>> getcontext () . prec = 28 >>> Decimal ( 10 ) Decimal('10') >>> Decimal ( '3.14' ) Decimal('3.14') >>> Decimal ( 3.14 ) Decimal('3.14000000000000012434497875801753252744674682617 ... 1875') >>> Decimal (( 0 , ( 3 , 1 , 4 ), - 2 )) Decimal('3.14') >>> Decimal ( str ( 2.0 ** 0.5 )) Decimal('1.4142135623730951') >>> Decimal ( 2 ) ** Decimal ( '0.5' ) Decimal('1.41 ...
https://man.mtool.work/python/3.14/library/decimal.html
decimal --- 10進固定小数点と浮動小数点の演算 — Python 3.14.8 ドキュメント 10169
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » decimal --- 10進固定小数点と浮動小数点の演算 テーマ 自動 ライト ダーク | decimal --- 10進固定小数点と浮動小数 ... 問題解決に十分な大きさです: >>> from decimal import * >>> getcontext () . prec = 6 >>> Decimal ( 1 ) / Decimal ( 7 ) Decimal('0.142857') >>> getcontext () . prec = 28 >>> Decimal ( 1 ) / Decimal ( 7 ) Decimal('0.1428571428571428571428571429') 二進と ... aN や正負の Infinity (無限大)、 -0 といった特殊な値も表現できます: >>> getcontext () . prec = 28 >>> Decimal ( 10 ) Decimal('10') >>> Decimal ( '3.14' ) Decimal('3.14') >>> Decimal ( 3.14 ) Decimal('3.14000000000000012434497875801753252744674682617 ... 1875') >>> Decimal (( 0 , ( 3 , 1 , 4 ), - 2 )) Decimal('3.14') >>> Decimal ( str ( 2.0 ** 0.5 )) Decimal('1.4142135623730951') >>> Decimal ( 2 ) ** Decimal ( '0.5' ) Decimal('1.41 ...
https://man.mtool.work/python/3.14/library/decimal.html
ipaddress --- IPv4/IPv6 操作ライブラリ — Python 3.14.8 ドキュメント 9781
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » ipaddress --- IPv4/IPv6 操作ライブラリ テーマ 自動 ライト ダーク | ipaddress --- IPv4/IPv6 操作 ... されます。 address が正しい IPv4, IPv6 アドレスを表現していない場合は ValueError を発生させます。 >>> ipaddress . ip_address ( '192.168.0.1' ) IPv4Address('192.168.0.1') >>> ipaddress . ip_address ( '2001:db8::' ) IPv6Address('2001:db8::') ipaddress. ... 現していない場合や、ネットワークの host bit がセットされていた場合は ValueError を発生させます。 >>> ipaddress . ip_network ( '192.168.0.0/28' ) IPv4Network('192.168.0.0/28') ipaddress. ip_interface ( address ) ¶ 引数に渡された IP address に応じて、 ... る整数。 大きさ4の bytes オブジェクトに (最上位オクテットが最初になるように) パックされた整数。 >>> ipaddress . IPv4Address ( '192.168.0.1' ) IPv4Address('192.168.0.1') >>> ipaddress . IPv4Address ( 3232235521 ) IPv4Address('192.168.0.1') >>> ipaddr ...
https://man.mtool.work/python/3.14/library/ipaddress.html
ipaddress --- IPv4/IPv6 操作ライブラリ — Python 3.14.8 ドキュメント 9781
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » ipaddress --- IPv4/IPv6 操作ライブラリ テーマ 自動 ライト ダーク | ipaddress --- IPv4/IPv6 操作 ... されます。 address が正しい IPv4, IPv6 アドレスを表現していない場合は ValueError を発生させます。 >>> ipaddress . ip_address ( '192.168.0.1' ) IPv4Address('192.168.0.1') >>> ipaddress . ip_address ( '2001:db8::' ) IPv6Address('2001:db8::') ipaddress. ... 現していない場合や、ネットワークの host bit がセットされていた場合は ValueError を発生させます。 >>> ipaddress . ip_network ( '192.168.0.0/28' ) IPv4Network('192.168.0.0/28') ipaddress. ip_interface ( address ) ¶ 引数に渡された IP address に応じて、 ... る整数。 大きさ4の bytes オブジェクトに (最上位オクテットが最初になるように) パックされた整数。 >>> ipaddress . IPv4Address ( '192.168.0.1' ) IPv4Address('192.168.0.1') >>> ipaddress . IPv4Address ( 3232235521 ) IPv4Address('192.168.0.1') >>> ipaddr ...
https://man.mtool.work/python/3.14/library/ipaddress.html
pathlib --- オブジェクト指向のファイルシステムパス — Python 3.14.8 ドキュメント 8995
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルとディレクトリへのアクセス » pathlib --- オブジェクト指向のファイルシステムパス テーマ 自動 ライト ダーク | pathlib --- オブ ... 本的な使い方 ¶ メインクラスをインポートします: >>> from pathlib import Path サブディレクトリの一覧を取得します: >>> p = Path ( '.' ) >>> [ x for x in p . iterdir () if x . is_dir ()] [PosixPath('.hg'), PosixPath('docs'), PosixPath('dist'), PosixPath( ... '__pycache__'), PosixPath('build')] このディレクトリツリー内の Python ソースファイルの一覧を取得します: >>> list ( p . glob ( '**/*.py' )) [PosixPath( ... 'test_pathlib.py'), PosixPath('setup.py'), PosixPath('pathlib.py'), PosixPath('docs/conf.py'), PosixPath('build/lib/pathlib.py')] ディレクトリツリー内を移 ...
https://man.mtool.work/python/3.14/library/pathlib.html
pathlib --- オブジェクト指向のファイルシステムパス — Python 3.14.8 ドキュメント 8995
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルとディレクトリへのアクセス » pathlib --- オブジェクト指向のファイルシステムパス テーマ 自動 ライト ダーク | pathlib --- オブ ... 本的な使い方 ¶ メインクラスをインポートします: >>> from pathlib import Path サブディレクトリの一覧を取得します: >>> p = Path ( '.' ) >>> [ x for x in p . iterdir () if x . is_dir ()] [PosixPath('.hg'), PosixPath('docs'), PosixPath('dist'), PosixPath( ... '__pycache__'), PosixPath('build')] このディレクトリツリー内の Python ソースファイルの一覧を取得します: >>> list ( p . glob ( '**/*.py' )) [PosixPath( ... 'test_pathlib.py'), PosixPath('setup.py'), PosixPath('pathlib.py'), PosixPath('docs/conf.py'), PosixPath('build/lib/pathlib.py')] ディレクトリツリー内を移 ...
https://man.mtool.work/python/3.14/library/pathlib.html
ソートのテクニック — Python 3.14.8 ドキュメント 8921
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » ソートのテクニック テーマ 自動 ライト ダーク | ソートのテクニック ¶ Author : Andrew Dalke and Raymond Hettinger Python のリストにはリストをインプレ ... 用パターンはいくつかの要素から成る対象をインデクスのどれかをキーとしてソートすることです。例えば: >>> student_tuples = [ ... ( 'john' , 'A' , 15 ), ... ( 'jane' , 'B' , 12 ), ... ( 'dave' , 'B' , 10 ), ... ] >>> sorted ( student_tuples , key = lambda ... student : student [ 2 ]) # sort by age [('dave', 'B', 10), ('jane', 'B', 12), ('john', 'A', 15)] 同じテクニックは名前づけされた属性 (named attributes) を使うことでオ ... . def __repr__ ( self ): ... return repr (( self . name , self . grade , self . age )) >>> student_objects = [ ... Student ( 'john' , 'A' , 15 ), ... Student ( 'jane' , 'B' , 12 ), ... Student ( 'dave' , 'B' , 10 ), ... ] >>> sorted ( student_objec ...
https://man.mtool.work/python/3.14/howto/sorting.html
ソートのテクニック — Python 3.14.8 ドキュメント 8921
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » ソートのテクニック テーマ 自動 ライト ダーク | ソートのテクニック ¶ Author : Andrew Dalke and Raymond Hettinger Python のリストにはリストをインプレ ... 用パターンはいくつかの要素から成る対象をインデクスのどれかをキーとしてソートすることです。例えば: >>> student_tuples = [ ... ( 'john' , 'A' , 15 ), ... ( 'jane' , 'B' , 12 ), ... ( 'dave' , 'B' , 10 ), ... ] >>> sorted ( student_tuples , key = lambda ... student : student [ 2 ]) # sort by age [('dave', 'B', 10), ('jane', 'B', 12), ('john', 'A', 15)] 同じテクニックは名前づけされた属性 (named attributes) を使うことでオ ... . def __repr__ ( self ): ... return repr (( self . name , self . grade , self . age )) >>> student_objects = [ ... Student ( 'john' , 'A' , 15 ), ... Student ( 'jane' , 'B' , 12 ), ... Student ( 'dave' , 'B' , 10 ), ... ] >>> sorted ( student_objec ...
https://man.mtool.work/python/3.14/howto/sorting.html
itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 8806
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効 ... ) p [,func] p0, p0+p1, p0+p1+p2, ... accumulate([1,2,3,4,5]) → 1 3 6 10 15 batched() p, n (p0, p1, ..., p_n-1), ... batched('ABCDEFG', n=3) → ABC DEF G chain() p, q, ... p0, p1, ... plast, q0, q1, ... chain('ABC', 'DEF') → A B C D E F chain.from_it ... . chain.from_iterable(['ABC', 'DEF']) → A B C D E F compress() data, selectors (d[0] if s[0]), (d[1] if s[1]), ... compress('ABCDEF', [1,0,1,0,1,1]) → A C E F count() [start[, step]] start, start+step, start+2*step, ... count(10) → 10 11 12 13 14 . ... .. cycle() p p0, p1, ... plast, p0, p1, ... cycle('ABCD') → A B C D A B C D ... dropwhile() predicate, seq seq[n], seq[n+1], starting when predicate fails dropwhile(lambda x: ...
https://man.mtool.work/python/3.14/library/itertools.html
itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 8806
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効 ... ) p [,func] p0, p0+p1, p0+p1+p2, ... accumulate([1,2,3,4,5]) → 1 3 6 10 15 batched() p, n (p0, p1, ..., p_n-1), ... batched('ABCDEFG', n=3) → ABC DEF G chain() p, q, ... p0, p1, ... plast, q0, q1, ... chain('ABC', 'DEF') → A B C D E F chain.from_it ... . chain.from_iterable(['ABC', 'DEF']) → A B C D E F compress() data, selectors (d[0] if s[0]), (d[1] if s[1]), ... compress('ABCDEF', [1,0,1,0,1,1]) → A C E F count() [start[, step]] start, start+step, start+2*step, ... count(10) → 10 11 12 13 14 . ... .. cycle() p p0, p1, ... plast, p0, p1, ... cycle('ABCD') → A B C D A B C D ... dropwhile() predicate, seq seq[n], seq[n+1], starting when predicate fails dropwhile(lambda x: ...
https://man.mtool.work/python/3.14/library/itertools.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT