per page, with , order by , clip by
Results of 1 - 10 of about 13 for integers (0.006 sec.)
argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー 12633
argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー Added in version 3.2. ソースコード: Lib/argparse.py 注釈 argparse は基本的なコマンドラインアプリケーションの実装に推奨される標準ライブラリのモジュールですが、動作を厳密 ... False に設定してください: >>> parser = argparse . ArgumentParser ( exit_on_error = False ) >>> parser . add_argument ( '--integers' , type = int ) _StoreAction(option_strings=['--integers'], dest='integers', nargs=None, const=None, default=None, type=<c ... lass 'int'>, choices=None, help=None, metavar=None) >>> try : ... parser . parse_args ( '--integers a' . split ()) ... except argparse . ArgumentError : ... print ( 'Catching an argumentError' ) ... Catching an argumentErr ... ing the parser instead of using the keyword argument: >>> parser = argparse . ArgumentParser ( description = 'Process some integers.' ) >>> parser . suggest_on_error = True Added in version 3.14. color デフォルトでは、ヘルプは ANSI エスケープシーケンス を ...
https://man.mtool.work/python/3.14/library/argparse.html
math --- 数学関数 12633
math --- 数学関数 このモジュールは、C 標準で定義されたものを含む、一般的な数学関数と定数を提供します。 これらの関数で複素数を使うことはできません。複素数に対応する必要があるならば、 cmath モジュールにある同じ名前の関数を使ってください。ほと ... ます。 Number-theoretic functions comb(n, k) n 個から k 個を、重複なく順序を付けずに選ぶ方法の数 factorial(n) n の階乗 gcd(*integers) 整数引数の最大公約数 isqrt(n) 非負整数 n の整数平方根 lcm(*integers) 整数引数の最小公倍数 perm(n, k) n 個から k 個を、重複 ... to the coefficient of k-th term in polynomial expansion of (1 + x)ⁿ . Raises TypeError if either of the arguments are not integers. Raises ValueError if either of the arguments are negative. Added in version 3.8. math. factorial ( n ) Return factorial o ... negative integer n . バージョン 3.10 で変更: Floats with integral values (like 5.0 ) are no longer accepted. math. gcd ( * integers ) Return the greatest common divisor of the specified integer arguments. If any of the arguments is nonzero, then the retu ...
https://man.mtool.work/python/3.14/library/math.html
整数型オブジェクト (integer object) 9554
整数型オブジェクト (integer object) すべての整数は任意の長さをもつ "long" 整数として実装されます。 エラーが起きると、ほとんどの PyLong_As* API は (return type)-1 を返しますが、これは数値と見分けが付きません。 見分けを付けるためには PyErr_Oc ... トを生成して返します。失敗のときには NULL を返します。 CPython 実装の詳細: CPython keeps an array of integer objects for all integers between -5 and 256 . When you create an int in that range you actually just get back a reference to the existing object. P ... sion 3.12. Build configuration PYLONG_BITS_IN_DIGIT The number of bits in each digit of CPython's native representation of integers. The value can currently be either 30 (the default) or 15 , selected with --enable-big-digits when building Python. To acc ... ess the native representation of integers, use PyLong_GetNativeLayout() and its bits_per_digit member instead. エクスポート API Added in version 3.14. struct PyLong ...
https://man.mtool.work/python/3.14/c-api/long.html
termios --- POSIX スタイルの端末制御 9202
termios --- POSIX スタイルの端末制御 このモジュールでは端末 I/O 制御のための POSIX 準拠の関数呼び出しインターフェースを提供します。これら呼び出しのための完全な記述については、 Unix マニュアルページの termios(3) を参照してください。これは PO ... a list of the tty special characters (each a string of length 1, except the items with indices VMIN and VTIME , which are integers when these fields are defined). The interpretation of the flags and the speeds as well as the indexing in the cc array mus ...
https://man.mtool.work/python/3.14/library/termios.html
array --- 効率的な数値配列 8533
array --- 効率的な数値配列 This module defines an object type which can compactly represent an array of basic values: characters, integers, floating-point numbers. Arrays are mutable sequence types and behave very much like lists, except th ...
https://man.mtool.work/python/3.14/library/array.html
uuid --- RFC 9562 に基づく UUID オブジェクト 8181
uuid --- RFC 9562 に基づく UUID オブジェクト ソースコード: Lib/uuid.py このモジュールは、イミュータブルな UUID オブジェクト ( UUID クラス) と、 RFC 9562 ( RFC 4122 を置き換える RFC) で規定された特定のバージョンの UUID を生成する 関数 を提供 ... C 9562, §5.8 に従い、疑似乱数の UUID を生成します。 When specified, the parameters a , b and c are expected to be positive integers of 48, 12 and 62 bits respectively. If they exceed their expected bit count, only their least significant bits are kept; n ...
https://man.mtool.work/python/3.14/library/uuid.html
ソケットプログラミング HOWTO 7847
ソケットプログラミング HOWTO Author : Gordon McMillan 概要 ソケットはそこかしこで使われているが、最大級に誤解されている技術でもある。この文書はソケットの全体像を俯瞰しており、チュートリアルとしてはあまり役に立たない。実際に動くモノを完成させ ... of binary data is frequently smaller than the binary representation. That's because a surprising amount of the time, most integers have the value 0, or maybe 1. The string "0" would be two bytes, while a full 64-bit integer would be 8. Of course, this d ...
https://man.mtool.work/python/3.14/howto/sockets.html
random --- 疑似乱数を生成する 7847
random --- 疑似乱数を生成する ソースコード: Lib/random.py このモジュールでは様々な分布をもつ擬似乱数生成器を実装しています。 整数用に、ある範囲からの一様な選択があります。 シーケンス用には、シーケンスからのランダムな要素の一様な選択、リスト ... ights or cum_weights can use any numeric type that interoperates with the float values returned by random() (that includes integers, floats, and fractions but excludes decimals). Weights are assumed to be non-negative and finite. A ValueError is raised i ...
https://man.mtool.work/python/3.14/library/random.html
socket --- 低水準ネットワークインターフェース 7847
socket --- 低水準ネットワークインターフェース ソースコード: Lib/socket.py このモジュールはBSDの ソケット(socket) インターフェイスへのアクセスを提供します。これは、近代的なUnixシステム、Windows、MacOS、その他多くのプラットフォームで動作します ... 要素のタプルのリストを返します: (family, type, proto, canonname, sockaddr) In these tuples, family , type , proto are all integers and are meant to be passed to the socket() function. canonname will be a string representing the canonical name of the hos ... not WASI. recvmsg() と SCM_RIGHTS の仕組みをサポートする Unix プラットフォーム。 Added in version 3.9. 注釈 Any truncated integers at the end of the list of file descriptors. socket オブジェクト class socket. socket ( family = AF_INET , type = SOCK_STRE ...
https://man.mtool.work/python/3.14/library/socket.html
1. Extending Python with C or C++ 7495
1. Extending Python with C or C++ It is quite easy to add new built-in modules to Python, if you know how to program in C. Such extension modules can do two things that can't be done directly in Python: they can implement new built-in objec ... he function PyLong_FromLong() . return PyLong_FromLong ( sts ); In this case, it will return an integer object. (Yes, even integers are objects on the heap in Python!) If you have a C function that returns no useful argument (a function returning void ), ...
https://man.mtool.work/python/3.14/extending/extending.html
PREV 1 2 NEXT