per page, with , order by , clip by
Results of 1 - 6 of about 6 for factor (0.005 sec.)
10. 完全な文法仕様 12777
10. 完全な文法仕様 以下は Python の完全な文法で、CPython のパーサを生成するための文法から直接得たものです ( Grammar/python.gram を参照)。 ここでは、コード生成とエラー回復に関する詳細を省略しています。 ここで使う記法は、これまでのドキュメント ... '>>' sum | sum # Arithmetic operators # -------------------- sum : | sum '+' term | sum '-' term | term term : | term '*' factor | term '/' factor | term '//' factor | term '%' factor | term '@' factor | factor factor : | '+' factor | '-' factor | '~' ... factor | power power : | await_primary '**' factor | await_primary # Primary elements # ---------------- # Primary elements are t ...
https://man.mtool.work/python/3.14/reference/grammar.html
xml.parsers.expat --- Expat を使用した高速な XML 解析 9779
xml.parsers.expat --- Expat を使用した高速な XML 解析 注釈 信頼できないデータや、認証されていないデータを解析する場合は、 XML のセキュリティ を参照してください。 xml.parsers.expat モジュールは、妥当性検証を行わない XML パーサー Expat の Pyt ... っているため、推奨しません。 Added in version 3.14.6. xmlparser. SetBillionLaughsAttackProtectionMaximumAmplification ( max_factor , / ) billion laughs 攻撃に対する保護で許容する最大増幅率を設定します。 解析中の増幅率は (direct + indirect) / direct で計 ... 対象の主文書から読み込んだバイト数、 indirect はエンティティの展開や外部 DTD ファイルの読み込みで加わったバイト数です。 max_factor は NaN ではない 1.0 以上の float 値でなければなりません。 実際には、小さな無害なファイルでも、データ全体で 15,000 倍、解析 ... 、実際のデフォルト値は基になる Expat ライブラリによって異なります。 このメソッドを non-root パーサーで呼び出した場合や、 max_factor が有効な範囲を外れている場合は ExpatError が送出されます。 対応する lineno と offset は意味を持たない場合があるため、使わな ...
https://man.mtool.work/python/3.14/library/pyexpat.html
itertools --- 効率的なループ用のイテレータ生成関数群 8993
itertools --- 効率的なループ用のイテレータ生成関数群 このモジュールは イテレータ を構築する部品を実装しています。プログラム言語 APL, Haskell, SML からアイデアを得ていますが、 Python に適した形に修正されています。 このモジュールは、高速でメモ ... 求める。 (x - 5) (x + 4) (x - 3) を展開すると: x³ -4x² -17x + 60 """ # polynomial_from_roots([5, -4, 3]) → [1, -4, -17, 60] factors = zip ( repeat ( 1 ), map ( neg , roots )) return list ( reduce ( convolve , factors , [ 1 ])) def polynomial_eval ( coef ... ata [ p * p : n : p + p ] = bytes ( len ( range ( p * p , n , p + p ))) yield from iter_index ( data , 1 , start = 3 ) def factor ( n ): "n の素因数。" # factor(99) → 3 3 11 # factor(1_000_000_000_000_007) → 47 59 360620266859 # factor(1_000_000_000_00 ... yield n def is_prime ( n ): "n が素数なら True を返す。" # is_prime(1_000_000_000_000_403) → True return n > 1 and next ( factor ( n )) == n def totient ( n ): "n 以下の自然数のうち、n と互いに素なものの数。" # https://mathworld.wolfram.com/TotientFun ...
https://man.mtool.work/python/3.14/library/itertools.html
doctest --- 対話型の Python の例をテストする 8371
doctest --- 対話型の Python の例をテストする ソースコード: Lib/doctest.py doctest モジュールは Python の対話セッションに見えるテキストを探し、そのセッションを実行して記載どおりに動作するか検証します。 主な使い方は次のとおりです。 モジュール ... ドキュメント」にもなります。 以下に完全かつ短い実行例を示します: """ これは "example" モジュールです。 example モジュールは factorial() という関数を一つ提供します。 例えば、 >>> factorial(5) 120 """ def factorial ( n ): """0 以上の整数 n の階乗を返します ... 。 >>> [factorial(n) for n in range(6)] [1, 1, 2, 6, 24, 120] >>> factorial(30) 265252859812191058636308480000000 >>> factorial(-1) Trace ... ll last): ... ValueError: n must be >= 0 浮動小数点数でも階乗を求められますが、その値は厳密に整数でなければなりません: >>> factorial(30.1) Traceback (most recent call last): ... ValueError: n must be exact integer >>> factorial(30.0) 265252859812191058 ...
https://man.mtool.work/python/3.14/library/doctest.html
platform --- 実行中プラットフォームの固有情報を参照する 7421
platform --- 実行中プラットフォームの固有情報を参照する ソースコード: Lib/platform.py 注釈 プラットフォーム毎にアルファベット順に並べています。Linuxについては Unixセクションを参照してください。 プラットフォーム共通 platform. architecture ( ... アルの関連ページ PHP sizeof() Docker docker manifest Linux JM ld(1) PHP phpdbg_get_executable() PHP is_executable() Linux JM factor(1) ...
https://man.mtool.work/python/3.14/library/platform.html
turtle --- タートルグラフィックス 7421
turtle --- タートルグラフィックス ソースコード: Lib/turtle.py Turtle star 単純な動きを繰り返すプログラムで、タートルは複雑な図形を描けます。 x-y 平面の (0, 0) から動き出す、亀のロボットを想像してください。 import turtle の後に turtle.forwar ... または色タプル "pensize": 正の数 "speed": 0 から 10 までの整数 "resizemode": "auto" または "user" または "noresize" "stretchfactor": (正の数, 正の数) "outline": 正の数 "tilt": 数 この辞書を以降の pen() 呼出しに渡して以前のペンの状態に復旧することができま ... or', 'black'), ('outline', 1), ('pencolor', 'red'), ('pendown', True), ('pensize', 10), ('resizemode', 'noresize'), ('shearfactor', 0.0), ('shown', True), ('speed', 9), ('stretchfactor', (1.0, 1.0)), ('tilt', 0.0)] >>> penstate = turtle . pen () >>> tu ... "auto": the turtle is resized according to the value of pensize() . "user": the turtle is resized according to the stretch factors and outline width, which are set by shapesize() . "noresize": the turtle is not resized. resizemode("user") は shapesize( ...
https://man.mtool.work/python/3.14/library/turtle.html
PREV 1 NEXT