per page, with , order by , clip by
Results of 1 - 10 of about 46 for square (0.007 sec.)
Argparse チュートリアル — Python 3.14.8 ドキュメント 14401
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー » Argparse チュー ... it 次は、もっと有益なことをしてみませんか?: import argparse parser = argparse . ArgumentParser () parser . add_argument ( "square" , help = "display a square of a given number" ) args = parser . parse_args () print ( args . square ** 2 ) 下記がこのコー ... ドを実行した結果です: $ python prog.py 4 Traceback (most recent call last): File "prog.py", line 5, in <module> print(args.square**2) TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int' 上手くいきませんでした。 何も伝えなければ、 ar ... ションの値を整数として扱うように伝えましょう: import argparse parser = argparse . ArgumentParser () parser . add_argument ( "square" , help = "display a square of a given number" , type = int ) args = parser . parse_args () print ( args . square ** 2 ) 下 ...
https://man.mtool.work/python/3.14/howto/argparse.html
Argparse チュートリアル — Python 3.14.8 ドキュメント 14401
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー » Argparse チュー ... it 次は、もっと有益なことをしてみませんか?: import argparse parser = argparse . ArgumentParser () parser . add_argument ( "square" , help = "display a square of a given number" ) args = parser . parse_args () print ( args . square ** 2 ) 下記がこのコー ... ドを実行した結果です: $ python prog.py 4 Traceback (most recent call last): File "prog.py", line 5, in <module> print(args.square**2) TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int' 上手くいきませんでした。 何も伝えなければ、 ar ... ションの値を整数として扱うように伝えましょう: import argparse parser = argparse . ArgumentParser () parser . add_argument ( "square" , help = "display a square of a given number" , type = int ) args = parser . parse_args () print ( args . square ** 2 ) 下 ...
https://man.mtool.work/python/3.14/howto/argparse.html
列挙型 HOWTO — Python 3.14.8 ドキュメント 9443
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 列挙型 HOWTO テーマ 自動 ライト ダーク | 列挙型 HOWTO ¶ Enum は、ユニークな値に束縛されたシンボル名の集合です。グローバル変数に似ていますが、 repr ... ber . value 1 列挙型メンバーと値の重複 ¶ 同じ名前の列挙型メンバーを複数持つことはできません: >>> class Shape ( Enum ): ... SQUARE = 2 ... SQUARE = 3 ... Traceback (most recent call last): ... TypeError : 'SQUARE' already defined as 2 しかし、列挙型メン ... ます。 A の名前での検索ではメンバー A を返します。 B の名前での検索も、メンバー A を返します: >>> class Shape ( Enum ): ... SQUARE = 2 ... DIAMOND = 1 ... CIRCLE = 3 ... ALIAS_FOR_SQUARE = 2 ... >>> Shape . SQUARE <Shape.SQUARE: 2> >>> Shape . ALIAS_FOR ... _SQUARE <Shape.SQUARE: 2> >>> Shape ( 2 ) <Shape.SQUARE: 2> 注釈 すでに定義されている属性と同じ名前のメンバー (一方がメンバーでもう ...
https://man.mtool.work/python/3.14/howto/enum.html
列挙型 HOWTO — Python 3.14.8 ドキュメント 9443
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 列挙型 HOWTO テーマ 自動 ライト ダーク | 列挙型 HOWTO ¶ Enum は、ユニークな値に束縛されたシンボル名の集合です。グローバル変数に似ていますが、 repr ... ber . value 1 列挙型メンバーと値の重複 ¶ 同じ名前の列挙型メンバーを複数持つことはできません: >>> class Shape ( Enum ): ... SQUARE = 2 ... SQUARE = 3 ... Traceback (most recent call last): ... TypeError : 'SQUARE' already defined as 2 しかし、列挙型メン ... ます。 A の名前での検索ではメンバー A を返します。 B の名前での検索も、メンバー A を返します: >>> class Shape ( Enum ): ... SQUARE = 2 ... DIAMOND = 1 ... CIRCLE = 3 ... ALIAS_FOR_SQUARE = 2 ... >>> Shape . SQUARE <Shape.SQUARE: 2> >>> Shape . ALIAS_FOR ... _SQUARE <Shape.SQUARE: 2> >>> Shape ( 2 ) <Shape.SQUARE: 2> 注釈 すでに定義されている属性と同じ名前のメンバー (一方がメンバーでもう ...
https://man.mtool.work/python/3.14/howto/enum.html
math --- 数学関数 — Python 3.14.8 ドキュメント 7765
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » math --- 数学関数 テーマ 自動 ライト ダーク | math --- 数学関数 ¶ This module provides access to common math ... om n items without repetition and without order factorial(n) n の階乗 gcd(*integers) 整数引数の最大公約数 isqrt(n) Integer square root of a nonnegative integer n lcm(*integers) Least common multiple of the integer arguments perm(n, k) Number of ways to ... for an arbitrary number of arguments. Formerly, only two arguments were supported. math. isqrt ( n ) ¶ Return the integer square root of the nonnegative integer n . This is the floor of the exact square root of n , or equivalently the greatest integer ... tions, it may be more convenient to have the least integer a such that n ≤ a ², or in other words the ceiling of the exact square root of n . For positive n , this can be computed using a = 1 + isqrt(n - 1) . Added in version 3.8. math. lcm ( * integer ...
https://man.mtool.work/python/3.14/library/math.html
math --- 数学関数 — Python 3.14.8 ドキュメント 7612
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » math --- 数学関数 テーマ 自動 ライト ダーク | math --- 数学関数 ¶ This module provides access to common math ... om n items without repetition and without order factorial(n) n の階乗 gcd(*integers) 整数引数の最大公約数 isqrt(n) Integer square root of a nonnegative integer n lcm(*integers) Least common multiple of the integer arguments perm(n, k) Number of ways to ... for an arbitrary number of arguments. Formerly, only two arguments were supported. math. isqrt ( n ) ¶ Return the integer square root of the nonnegative integer n . This is the floor of the exact square root of n , or equivalently the greatest integer ... tions, it may be more convenient to have the least integer a such that n ≤ a ², or in other words the ceiling of the exact square root of n . For positive n , this can be computed using a = 1 + isqrt(n - 1) . Added in version 3.8. math. lcm ( * integer ...
https://man.mtool.work/python/3.14/library/math.html
8. 複合文 (compound statement) — Python 3.14.8 ドキュメント 7505
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 8. 複合文 (compound statement) テーマ 自動 ライト ダーク | 8. 複合文 (compound statement) ¶ 複合文には、他の文 (のグループ) が入ります; ... star_pattern | pattern star_pattern : "*" ( capture_pattern | wildcard_pattern ) There is no difference if parentheses or square brackets are used for sequence patterns (i.e. (...) vs [...] ). 注釈 A single pattern enclosed in parentheses without a tr ... ailing comma (e.g. (3 | 4) ) is a group pattern . While a single pattern enclosed in square brackets (e.g. [3 | 4] ) is still a sequence pattern. At most one star subpattern may be in a sequence pattern. The star s ... on . Previously, the grammar was much more restrictive; see PEP 614 for details. A list of type parameters may be given in square brackets between the function's name and the opening parenthesis for its parameter list. This indicates to static type che ...
https://man.mtool.work/python/3.14/reference/compound_stmts.html
1. はじめに — Python 3.14.8 ドキュメント 7505
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 1. はじめに テーマ 自動 ライト ダーク | 1. はじめに ¶ このリファレンスマニュアルは、Python プログラミング言語自体に関する記述です。チュ ... or more repetitions of the preceding item. e+ : Likewise, a plus means one or more repetitions. [e] : A phrase enclosed in square brackets means zero or one occurrences. In other words, the enclosed phrase is optional. e? : A question mark has exactly ... the same meaning as square brackets: the preceding item is optional. (e) : Parentheses are used for grouping. The following notation is only used in ...
https://man.mtool.work/python/3.14/reference/introduction.html
8. 複合文 (compound statement) — Python 3.14.8 ドキュメント 7505
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 8. 複合文 (compound statement) テーマ 自動 ライト ダーク | 8. 複合文 (compound statement) ¶ 複合文には、他の文 (のグループ) が入ります; ... star_pattern | pattern star_pattern : "*" ( capture_pattern | wildcard_pattern ) There is no difference if parentheses or square brackets are used for sequence patterns (i.e. (...) vs [...] ). 注釈 A single pattern enclosed in parentheses without a tr ... ailing comma (e.g. (3 | 4) ) is a group pattern . While a single pattern enclosed in square brackets (e.g. [3 | 4] ) is still a sequence pattern. At most one star subpattern may be in a sequence pattern. The star s ... on . Previously, the grammar was much more restrictive; see PEP 614 for details. A list of type parameters may be given in square brackets between the function's name and the opening parenthesis for its parameter list. This indicates to static type che ...
https://man.mtool.work/python/3.14/reference/compound_stmts.html
1. はじめに — Python 3.14.8 ドキュメント 7505
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 1. はじめに テーマ 自動 ライト ダーク | 1. はじめに ¶ このリファレンスマニュアルは、Python プログラミング言語自体に関する記述です。チュ ... or more repetitions of the preceding item. e+ : Likewise, a plus means one or more repetitions. [e] : A phrase enclosed in square brackets means zero or one occurrences. In other words, the enclosed phrase is optional. e? : A question mark has exactly ... the same meaning as square brackets: the preceding item is optional. (e) : Parentheses are used for grouping. The following notation is only used in ...
https://man.mtool.work/python/3.14/reference/introduction.html
PREV 1 2 3 4 5 NEXT