Results of 1 - 10 of about 182 for 等価 (0.011 sec.)
- operator --- 関数形式の標準演算子 — Python 3.14.8 ドキュメント 12881
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » operator --- 関数形式の標準演算子 テーマ 自動 ライト ダーク | operator --- 関数形式の標準演算子
...a < b 、 le(a, b) は a <= b 、 eq(a, b) は a == b 、 ne(a, b) は a != b 、 gt(a, b) は a > b 、そして ge(a, b) は a >= b と等価です。これらの関数はどのような値を返してもよく、ブール値として解釈できてもできなくてもかまいません。拡張比較の詳細については...ます。 f = attrgetter('name.first', 'name.last') とした後で、 f(b) を呼び出すと (b.name.first, b.name.last) を返します。 次と等価です: def attrgetter ( * items ): if any ( not isinstance ( item , str ) for item in items ): raise TypeError ( 'attribute n...を呼び出すと r[2] を返します。 g = itemgetter(2, 5, 3) とした後で、 g(r) を呼び出すと (r[2], r[5], r[3]) を返します。 次と等価です: def itemgetter ( * items ): if len ( items ) == 1 : item = items [ 0 ] def g ( obj ): return obj [ item ] else : def g... - https://man.mtool.work/python/3.14/library/operator.html
- operator --- 関数形式の標準演算子 — Python 3.14.8 ドキュメント 12449
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » operator --- 関数形式の標準演算子 テーマ 自動 ライト ダーク | operator --- 関数形式の標準演算子
...a < b 、 le(a, b) は a <= b 、 eq(a, b) は a == b 、 ne(a, b) は a != b 、 gt(a, b) は a > b 、そして ge(a, b) は a >= b と等価です。これらの関数はどのような値を返してもよく、ブール値として解釈できてもできなくてもかまいません。拡張比較の詳細については...ます。 f = attrgetter('name.first', 'name.last') とした後で、 f(b) を呼び出すと (b.name.first, b.name.last) を返します。 次と等価です: def attrgetter ( * items ): if any ( not isinstance ( item , str ) for item in items ): raise TypeError ( 'attribute n...を呼び出すと r[2] を返します。 g = itemgetter(2, 5, 3) とした後で、 g(r) を呼び出すと (r[2], r[5], r[3]) を返します。 次と等価です: def itemgetter ( * items ): if len ( items ) == 1 : item = items [ 0 ] def g ( obj ): return obj [ item ] else : def g... - https://man.mtool.work/python/3.14/library/operator.html
- 6. 式 (expression) — Python 3.14.8 ドキュメント 8845
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 6. 式 (expression) テーマ 自動 ライト ダーク | 6. 式 (expression) ¶ この章では、Python の式における個々の要素の意味について解説します。
...bool() on such value in boolean contexts. 比較はいくらでも連鎖することができます。例えば x < y <= z は x < y and y <= z と等価になります。ただしこの場合、前者では y はただ一度だけ評価される点が異なります (どちらの場合でも、 x < y が偽になると z の値は...z が式で op1 , op2 , ..., opN が比較演算子である場合、 a op1 b op2 c ... y opN z は a op1 b and b op2 c and ... y opN z と等価になります。ただし、前者では各式は多くても一度しか評価されません。 a op1 b op2 c と書いた場合、 a から c までの範囲にあるかど...mize their comparison behavior by implementing rich comparison methods like __lt__() , described in 基本的なカスタマイズ . 等価比較 ( == および != ) のデフォルトの振る舞いは、オブジェクトの同一性に基づいています。 従って、同一のインスタンスの等価比較の... - https://man.mtool.work/python/3.14/reference/expressions.html
- itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 8845
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効
...='-') → Ax By C- D- 組合せイテレータ: イテレータ 引数 結果 product() p, q, ... [repeat=1] デカルト積、ネストしたforループと等価 permutations() p[, r] 長さrのタプル列、重複なしのあらゆる並び combinations() p, r 長さrのタプル列、ソートされた順で重複なし..., the accumulation will start with that value and the output will have one more element than the input iterable. およそ次と等価です: def accumulate ( iterable , function = operator . add , * , initial = None ): 'Return running totals' # accumulate([1,...st ( batched ( flattened_data , 2 )) >>> unflattened [('roses', 'red'), ('violets', 'blue'), ('sugar', 'sweet')] およそ次と等価です: def batched ( iterable , n , * , strict = False ): # batched('ABCDEFG', 3) → ABC DEF G if n < 1 : raise ValueError ( '... - https://man.mtool.work/python/3.14/library/itertools.html
- 6. 式 (expression) — Python 3.14.8 ドキュメント 8845
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 6. 式 (expression) テーマ 自動 ライト ダーク | 6. 式 (expression) ¶ この章では、Python の式における個々の要素の意味について解説します。
...bool() on such value in boolean contexts. 比較はいくらでも連鎖することができます。例えば x < y <= z は x < y and y <= z と等価になります。ただしこの場合、前者では y はただ一度だけ評価される点が異なります (どちらの場合でも、 x < y が偽になると z の値は...z が式で op1 , op2 , ..., opN が比較演算子である場合、 a op1 b op2 c ... y opN z は a op1 b and b op2 c and ... y opN z と等価になります。ただし、前者では各式は多くても一度しか評価されません。 a op1 b op2 c と書いた場合、 a から c までの範囲にあるかど...mize their comparison behavior by implementing rich comparison methods like __lt__() , described in 基本的なカスタマイズ . 等価比較 ( == および != ) のデフォルトの振る舞いは、オブジェクトの同一性に基づいています。 従って、同一のインスタンスの等価比較の... - https://man.mtool.work/python/3.14/reference/expressions.html
- datetime --- 基本的な日付と時間の型 — Python 3.14.8 ドキュメント 8635
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » datetime --- 基本的な日付と時間の型 テーマ 自動 ライト ダーク | datetime --- 基本的な日付と時間の型 ¶ ソースコード: Lib/
...ction. True division and multiplication of a timedelta object by a float object are now supported. timedelta オブジェクトは等価性と順序の比較をサポートします。 ブール演算コンテキストでは、 timedelta オブジェクトは timedelta(0) に等しくない場合かつその...スメソッドを以下に示します: classmethod date. today ( ) ¶ 現在のローカルな日付を返します。 date.fromtimestamp(time.time()) と等価です。 classmethod date. fromtimestamp ( timestamp ) ¶ Return the local date corresponding to the POSIX timestamp , such as...+ timedelta == date1 であるような日付 date2 を計算します。(2) timedelta = date1 - date2 (3) date1 == date2 date1 != date2 等価性の比較。(4) date1 < date2 date1 > date2 date1 <= date2 date1 >= date2 順序の比較。(5) 注釈: date2 は、 timedelta.days > 0... - https://man.mtool.work/python/3.14/library/datetime.html
- itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 8635
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効
...='-') → Ax By C- D- 組合せイテレータ: イテレータ 引数 結果 product() p, q, ... [repeat=1] デカルト積、ネストしたforループと等価 permutations() p[, r] 長さrのタプル列、重複なしのあらゆる並び combinations() p, r 長さrのタプル列、ソートされた順で重複なし..., the accumulation will start with that value and the output will have one more element than the input iterable. およそ次と等価です: def accumulate ( iterable , function = operator . add , * , initial = None ): 'Return running totals' # accumulate([1,...st ( batched ( flattened_data , 2 )) >>> unflattened [('roses', 'red'), ('violets', 'blue'), ('sugar', 'sweet')] およそ次と等価です: def batched ( iterable , n , * , strict = False ): # batched('ABCDEFG', 3) → ABC DEF G if n < 1 : raise ValueError ( '... - https://man.mtool.work/python/3.14/library/itertools.html
- datetime --- 基本的な日付と時間の型 — Python 3.14.8 ドキュメント 8635
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » datetime --- 基本的な日付と時間の型 テーマ 自動 ライト ダーク | datetime --- 基本的な日付と時間の型 ¶ ソースコード: Lib/
...ction. True division and multiplication of a timedelta object by a float object are now supported. timedelta オブジェクトは等価性と順序の比較をサポートします。 ブール演算コンテキストでは、 timedelta オブジェクトは timedelta(0) に等しくない場合かつその...スメソッドを以下に示します: classmethod date. today ( ) ¶ 現在のローカルな日付を返します。 date.fromtimestamp(time.time()) と等価です。 classmethod date. fromtimestamp ( timestamp ) ¶ Return the local date corresponding to the POSIX timestamp , such as...+ timedelta == date1 であるような日付 date2 を計算します。(2) timedelta = date1 - date2 (3) date1 == date2 date1 != date2 等価性の比較。(4) date1 < date2 date1 > date2 date1 <= date2 date1 >= date2 順序の比較。(5) 注釈: date2 は、 timedelta.days > 0... - https://man.mtool.work/python/3.14/library/datetime.html
- curses.ascii --- ASCII 文字のユーティリティー — Python 3.14.8 ドキュメント 7363
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » curses.ascii --- ASCII 文字のユーティリティー テーマ 自動 ライト ダーク | curses.ascii -
...る以下の関数をサポートしています: curses.ascii. isalnum ( c ) ¶ ASCII 英数文字かどうかを調べます; isalpha(c) or isdigit(c) と等価です。 curses.ascii. isalpha ( c ) ¶ ASCII アルファベット文字かどうかを調べます; isupper(c) or islower(c) と等価です。 curse...。 curses.ascii. isdigit ( c ) ¶ ASCII 10 進数字、すなわち '0' から '9' までの文字かどうかを調べます。 c in string.digits と等価です。 curses.ascii. isgraph ( c ) ¶ Checks for any ASCII printable character except space. curses.ascii. islower ( c ) ¶ AS...SCII 大文字かどうかを調べます。 curses.ascii. isxdigit ( c ) ¶ ASCII 16 進数字かどうかを調べます。 c in string.hexdigits と等価です。 curses.ascii. isctrl ( c ) ¶ Checks for an ASCII control character (ordinal values 0 to 31). Unlike iscntrl() , this... - https://man.mtool.work/python/3.14/library/curses.ascii.html
- curses.ascii --- ASCII 文字のユーティリティー — Python 3.14.8 ドキュメント 7363
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » curses.ascii --- ASCII 文字のユーティリティー テーマ 自動 ライト ダーク | curses.ascii -
...る以下の関数をサポートしています: curses.ascii. isalnum ( c ) ¶ ASCII 英数文字かどうかを調べます; isalpha(c) or isdigit(c) と等価です。 curses.ascii. isalpha ( c ) ¶ ASCII アルファベット文字かどうかを調べます; isupper(c) or islower(c) と等価です。 curse...。 curses.ascii. isdigit ( c ) ¶ ASCII 10 進数字、すなわち '0' から '9' までの文字かどうかを調べます。 c in string.digits と等価です。 curses.ascii. isgraph ( c ) ¶ Checks for any ASCII printable character except space. curses.ascii. islower ( c ) ¶ AS...SCII 大文字かどうかを調べます。 curses.ascii. isxdigit ( c ) ¶ ASCII 16 進数字かどうかを調べます。 c in string.hexdigits と等価です。 curses.ascii. isctrl ( c ) ¶ Checks for an ASCII control character (ordinal values 0 to 31). Unlike iscntrl() , this... - https://man.mtool.work/python/3.14/library/curses.ascii.html