Results of 1 - 10 of about 65 for choice (0.023 sec.)
- random --- 疑似乱数を生成する — Python 3.14.8 ドキュメント 13426
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » random --- 疑似乱数を生成する テーマ 自動 ライト ダーク | random --- 疑似乱数を生成する ¶ ソースコード: Lib/
...rt , 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. 位置引数のパターンは ra...を生成できるようになります。 バージョン 3.9 で変更: k の値として 0 が許されるようになりました。 シーケンス用の関数 ¶ random. choice ( seq ) ¶ 空でないシーケンス seq からランダムに要素を返します。 seq が空のときは、 IndexError が送出されます。 random. cho...値を指定することが規定されます。全ての重みが 0 の場合、例外 ValueError が送出されます。 与えられた種に対して、同じ重みを持つ choices() 関数は、一般に choice() を繰り返し呼び出す場合とは異なるシーケンスを生成します。 choices() で使用されるアルゴリズムは、... - https://man.mtool.work/python/3.14/library/random.html
- random --- 疑似乱数を生成する — Python 3.14.8 ドキュメント 13426
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » random --- 疑似乱数を生成する テーマ 自動 ライト ダーク | random --- 疑似乱数を生成する ¶ ソースコード: Lib/
...rt , 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. 位置引数のパターンは ra...を生成できるようになります。 バージョン 3.9 で変更: k の値として 0 が許されるようになりました。 シーケンス用の関数 ¶ random. choice ( seq ) ¶ 空でないシーケンス seq からランダムに要素を返します。 seq が空のときは、 IndexError が送出されます。 random. cho...値を指定することが規定されます。全ての重みが 0 の場合、例外 ValueError が送出されます。 与えられた種に対して、同じ重みを持つ choices() 関数は、一般に choice() を繰り返し呼び出す場合とは異なるシーケンスを生成します。 choices() で使用されるアルゴリズムは、... - https://man.mtool.work/python/3.14/library/random.html
- secrets --- 機密を扱うために安全な乱数を生成する — Python 3.14.8 ドキュメント 10621
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 暗号関連のサービス » secrets --- 機密を扱うために安全な乱数を生成する テーマ 自動 ライト ダーク | secrets --- 機密を扱うために安全な
...質なソースを用いて乱数を生成するためのクラスです。更に詳しいことについては random.SystemRandom を参照してください。 secrets. choice ( seq ) ¶ 空でないシーケンスから要素をランダムに選択して返します。 secrets. randbelow ( exclusive_upper_bound ) ¶ [0, excl...するには: import string import secrets alphabet = string . ascii_letters + string . digits password = '' . join ( secrets . choice ( alphabet ) for i in range ( 8 )) 注釈 アプリケーションは、平文であろうと暗号化されていようと、 復元可能な形式でパスワード...rt string import secrets alphabet = string . ascii_letters + string . digits while True : password = '' . join ( secrets . choice ( alphabet ) for i in range ( 10 )) if ( any ( c . islower () for c in password ) and any ( c . isupper () for c in passwo... - https://man.mtool.work/python/3.14/library/secrets.html
- secrets --- 機密を扱うために安全な乱数を生成する — Python 3.14.8 ドキュメント 10621
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 暗号関連のサービス » secrets --- 機密を扱うために安全な乱数を生成する テーマ 自動 ライト ダーク | secrets --- 機密を扱うために安全な
...質なソースを用いて乱数を生成するためのクラスです。更に詳しいことについては random.SystemRandom を参照してください。 secrets. choice ( seq ) ¶ 空でないシーケンスから要素をランダムに選択して返します。 secrets. randbelow ( exclusive_upper_bound ) ¶ [0, excl...するには: import string import secrets alphabet = string . ascii_letters + string . digits password = '' . join ( secrets . choice ( alphabet ) for i in range ( 8 )) 注釈 アプリケーションは、平文であろうと暗号化されていようと、 復元可能な形式でパスワード...rt string import secrets alphabet = string . ascii_letters + string . digits while True : password = '' . join ( secrets . choice ( alphabet ) for i in range ( 10 )) if ( any ( c . islower () for c in password ) and any ( c . isupper () for c in passwo... - https://man.mtool.work/python/3.14/library/secrets.html
- Logging クックブック — Python 3.14.8 ドキュメント 9848
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Logging クックブック テーマ 自動 ライト ダーク | Logging クックブック ¶ Author : Vinay Sajip <vinay_sajip at red-dove dot com> このページは、過去に
...マット文字列を使って以下に示すように似たような出力を得られます。これはスクリプトの例です: import logging from random import choice class ContextFilter ( logging . Filter ): """ This is a filter which injects contextual information into the log. Rather t...'fred' , 'sheila' ] IPS = [ '123.231.231.123' , '127.0.0.1' , '192.168.0.1' ] def filter ( self , record ): record . ip = choice ( ContextFilter . IPS ) record . user = choice ( ContextFilter . USERS ) return True if __name__ == '__main__' : levels =...a1 . debug ( 'A debug message' ) a1 . info ( 'An info message with %s ' , 'some parameters' ) for x in range ( 10 ): lvl = choice ( levels ) lvlname = logging . getLevelName ( lvl ) a2 . log ( lvl , 'A message at %s level with %d %s ' , lvlname , 2 , '... - https://man.mtool.work/python/3.14/howto/logging-cookbook.html
- Logging クックブック — Python 3.14.8 ドキュメント 9690
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Logging クックブック テーマ 自動 ライト ダーク | Logging クックブック ¶ Author : Vinay Sajip <vinay_sajip at red-dove dot com> このページは、過去に
...マット文字列を使って以下に示すように似たような出力を得られます。これはスクリプトの例です: import logging from random import choice class ContextFilter ( logging . Filter ): """ This is a filter which injects contextual information into the log. Rather t...'fred' , 'sheila' ] IPS = [ '123.231.231.123' , '127.0.0.1' , '192.168.0.1' ] def filter ( self , record ): record . ip = choice ( ContextFilter . IPS ) record . user = choice ( ContextFilter . USERS ) return True if __name__ == '__main__' : levels =...a1 . debug ( 'A debug message' ) a1 . info ( 'An info message with %s ' , 'some parameters' ) for x in range ( 10 ): lvl = choice ( levels ) lvlname = logging . getLevelName ( lvl ) a2 . log ( lvl , 'A message at %s level with %d %s ' , lvlname , 2 , '... - https://man.mtool.work/python/3.14/howto/logging-cookbook.html
- optparse --- Parser for command line options — Python 3.14.8 ドキュメント 7672
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » optparse --- Parser for command line options テーマ 自動 ライト ダーク | optparse --- Pa
...arguments are processed. In the absence of more specific argument parsing design constraints, argparse is the recommended choice for implementing command line applications, as it offers the highest level of baseline functionality with the least applic...If > 1, optparse will store a tuple of values to dest . Option. const ¶ 定数を格納する動作のための、その定数です。 Option. choices ¶ "choice" 型オプションに対してユーザが選べる選択肢となる文字列のリストです。 Option. callback ¶ アクションが "callback"...ew have required attributes, which you must specify for any option using that action. "store" [関連: type , dest , nargs , choices ] オプションの後には必ず引数が続きます。引数は type に従って値に変換されて dest に保存されます。 nargs > 1 の場合、複数の... - https://man.mtool.work/python/3.14/library/optparse.html
- 1. はじめに — Python 3.14.8 ドキュメント 7672
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 1. はじめに テーマ 自動 ライト ダーク | 1. はじめに ¶ このリファレンスマニュアルは、Python プログラミング言語自体に関する記述です。チュ
...ce. Here, e1 must be followed by e2 . e1 | e2 : A vertical bar is used to separate alternatives. It denotes PEG's "ordered choice": if e1 matches, e2 is not considered. In traditional PEG grammars, this is written as a slash, / , rather than a vertical...following notation is only used in lexical definitions . "a"..."z" : Two literal characters separated by three dots mean a choice of any single character in the given (inclusive) range of ASCII characters. <...> : A phrase between angular brackets give... - https://man.mtool.work/python/3.14/reference/introduction.html
- optparse --- Parser for command line options — Python 3.14.8 ドキュメント 7672
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » optparse --- Parser for command line options テーマ 自動 ライト ダーク | optparse --- Pa
...arguments are processed. In the absence of more specific argument parsing design constraints, argparse is the recommended choice for implementing command line applications, as it offers the highest level of baseline functionality with the least applic...If > 1, optparse will store a tuple of values to dest . Option. const ¶ 定数を格納する動作のための、その定数です。 Option. choices ¶ "choice" 型オプションに対してユーザが選べる選択肢となる文字列のリストです。 Option. callback ¶ アクションが "callback"...ew have required attributes, which you must specify for any option using that action. "store" [関連: type , dest , nargs , choices ] オプションの後には必ず引数が続きます。引数は type に従って値に変換されて dest に保存されます。 nargs > 1 の場合、複数の... - https://man.mtool.work/python/3.14/library/optparse.html
- 1. はじめに — Python 3.14.8 ドキュメント 7672
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 1. はじめに テーマ 自動 ライト ダーク | 1. はじめに ¶ このリファレンスマニュアルは、Python プログラミング言語自体に関する記述です。チュ
...ce. Here, e1 must be followed by e2 . e1 | e2 : A vertical bar is used to separate alternatives. It denotes PEG's "ordered choice": if e1 matches, e2 is not considered. In traditional PEG grammars, this is written as a slash, / , rather than a vertical...following notation is only used in lexical definitions . "a"..."z" : Two literal characters separated by three dots mean a choice of any single character in the given (inclusive) range of ASCII characters. <...> : A phrase between angular brackets give... - https://man.mtool.work/python/3.14/reference/introduction.html