per page, with , order by , clip by
Results of 1 - 10 of about 29 for right (0.006 sec.)
cmd --- 行指向のコマンドインタープリターのサポート 15043
cmd --- 行指向のコマンドインタープリターのサポート ソースコード: Lib/cmd.py Cmd クラスでは、行指向のコマンドインタープリタを書くための簡単なフレームワークを提供します。テストハーネスや管理ツール、そして、後により洗練されたインターフェイスで ... _forward ( self , arg ): 'Move the turtle forward by the specified distance: FORWARD 10' forward ( * parse ( arg )) def do_right ( self , arg ): 'Turn turtle right by given number of degrees: RIGHT 20' right ( * parse ( arg )) def do_left ( self , arg ... e) ? Documented commands (type help <topic>): ======================================== bye color goto home playback record right circle forward heading left position reset undo (turtle) help forward Move the turtle forward by the specified distance: F ... (turtle) position Current position is 0 0 (turtle) heading Current heading is 0 (turtle) reset (turtle) circle 20 (turtle) right 30 (turtle) circle 40 (turtle) right 30 (turtle) circle 60 (turtle) right 30 (turtle) circle 80 (turtle) right 30 (turtle) ...
https://man.mtool.work/python/3.14/library/cmd.html
モニタリング C API 10197
モニタリング C API バージョン 3.13 で追加。 拡張モジュールがイベントモニタリングシステムと連携する必要がある場合があります。 イベントの購読やコールバックの登録は、 sys.monitoring が公開する Python API で行えます。 実行イベントの発生 以下の関 ... t * codelike , int32_t offset , PyObject * target_offset ) BRANCH_LEFT イベントを発生させます。 int PyMonitoring_FireBranchRightEvent ( PyMonitoringState * state , PyObject * codelike , int32_t offset , PyObject * target_offset ) BRANCH_RIGHT イベント ... t_types に使うマクロは次のとおりです。 マクロ Event PY_MONITORING_EVENT_BRANCH_LEFT BRANCH_LEFT PY_MONITORING_EVENT_BRANCH_RIGHT BRANCH_RIGHT PY_MONITORING_EVENT_CALL CALL PY_MONITORING_EVENT_C_RAISE C_RAISE PY_MONITORING_EVENT_C_RETURN C_RETURN PY_MO ... ON PY_MONITORING_EVENT_BRANCH バージョン 3.14 で非推奨: Use PY_MONITORING_EVENT_BRANCH_LEFT and PY_MONITORING_EVENT_BRANCH_RIGHT instead. BRANCH_LEFT and BRANCH_RIGHT int PyMonitoring_ExitScope ( void ) PyMonitoring_EnterScope() で最後に入ったスコープ ...
https://man.mtool.work/python/3.14/c-api/monitoring.html
turtle --- タートルグラフィックス 9789
turtle --- タートルグラフィックス ソースコード: Lib/turtle.py Turtle star 単純な動きを繰り返すプログラムで、タートルは複雑な図形を描けます。 x-y 平面の (0, 0) から動き出す、亀のロボットを想像してください。 import turtle の後に turtle.forwar ... d(15) と指示すると、向いている方向に (画面上で!) 15 ピクセル進みながら線を描きます。 turtle.right(25) と指示すると、その場で時計回りに 25 度回転します。 タートルグラフィックスは、1967 年に Logo に導入された描画ツール の実 ... ( 100 ) 方向を指示すると、矢印で表されたタートルの向きが変わることに注目してください。 これらのコマンドと、 backward() 、 right() も試してみてください。 多くのコマンドには、 forward() に対する fd() のような短い別名もあります。 Pen の制御 例えば color ... 幾何学的な模様を描けます。 for steps in range ( 100 ): for c in ( 'blue' , 'red' , 'green' ): color ( c ) forward ( steps ) right ( 30 ) どんな模様ができるかは、もちろん想像力次第です! このページの一番上にある星形を描いてみましょう。 赤い線で描き、中を ...
https://man.mtool.work/python/3.14/library/turtle.html
bisect --- 配列二分法アルゴリズム 9658
bisect --- 配列二分法アルゴリズム ソースコード: Lib/bisect.py このモジュールは、挿入のたびにリストをソートすることなく、ソートされた順序でリストを維持するためのサポートを提供します。 コストのかかる比較演算を伴う長いリストの場合、これは線形検 ... の場合は要素を直接比較し、キー関数を呼び出しません。 バージョン 3.10 で変更: key パラメータが追加されました。 bisect. bisect_right ( a , x , lo = 0 , hi = len(a) , * , key = None ) bisect. bisect ( a , x , lo = 0 , hi = len(a) , * , key = None ) bisect_ ... 理が全体の実行時間を支配することに注意してください。 バージョン 3.10 で変更: key パラメータが追加されました。 bisect. insort_right ( a , x , lo = 0 , hi = len(a) , * , key = None ) bisect. insort ( a , x , lo = 0 , hi = len(a) , * , key = None ) insort_ ... left() と似ていますが、 a に含まれる x のうち、どのエントリーよりも後ろに x を挿入します。 まず bisect_right() で挿入位置を探します。 次に a の insert() メソッドを呼び出し、ソート順を保つ適切な位置に x を挿入します。 テーブルへのレ ...
https://man.mtool.work/python/3.14/library/bisect.html
filecmp --- ファイルとディレクトリの比較 9658
filecmp --- ファイルとディレクトリの比較 ソースコード: Lib/filecmp.py filecmp モジュールはファイルとディレクトリを比較する関数を定義しています。 オプションによって、処理時間と正確性のさまざまなバランスを選べます。 ファイルの比較については d ... まで計算されません。 そのため計算が軽い属性だけを使う場合、重い計算による速度の低下はありません。 left ディレクトリ a です。 right ディレクトリ b です。 left_list a にあるファイルおよびサブディレクトリです。 hide および ignore でフィルタされています。 r ... mon a および b の両方にあるファイルおよびサブディレクトリです。 left_only a だけにあるファイルおよびサブディレクトリです。 right_only b だけにあるファイルおよびサブディレクトリです。 common_dirs a および b の両方にあるサブディレクトリです。 common_fil ... ): ... for name in dcmp . diff_files : ... print ( "diff_file %s found in %s and %s " % ( name , dcmp . left , ... dcmp . right )) ... for sub_dcmp in dcmp . subdirs . values (): ... print_diff_files ( sub_dcmp ) ... >>> dcmp = dircmp ( 'dir1' , 'dir ...
https://man.mtool.work/python/3.14/library/filecmp.html
複素数オブジェクト 9251
複素数オブジェクト Python's complex number objects are implemented as two distinct types when viewed from the C API: one is the Python object exposed to Python programs, and the other is a C structure which represents the actual complex num ... れています。 typedef struct { double real ; double imag ; } Py_complex ; Py_complex _Py_c_sum ( Py_complex left , Py_complex right ) 二つの複素数の和を C の Py_complex 型で返します。 Py_complex _Py_c_diff ( Py_complex left , Py_complex right ) 二つの複素 ... Py_complex num ) 複素数 num の符号反転 C の Py_complex 型で返します。 Py_complex _Py_c_prod ( Py_complex left , Py_complex right ) 二つの複素数の積を C の Py_complex 型で返します。 Py_complex _Py_c_quot ( Py_complex dividend , Py_complex divisor ) 二つ ...
https://man.mtool.work/python/3.14/c-api/complex.html
sys.monitoring --- 実行イベントモニタリング 8843
sys.monitoring --- 実行イベントモニタリング Added in version 3.12. 注釈 sys.monitoring は sys モジュール内の名前空間で、独立したモジュールではありません。 import sys.monitoring は ModuleNotFoundError で失敗します。 代わりに import sys を実行 ... 、どちらが「右」になるかは保証されませんが、プログラムの実行中に対応が変わることはありません。 sys.monitoring.events. BRANCH_RIGHT 条件分岐が右に進む。 sys.monitoring.events. CALL Python コードでの呼び出し (イベントは呼び出しの前に発生)。 sys.monitoring ... can be disabled. The local events are: PY_START PY_RESUME PY_RETURN PY_YIELD CALL LINE INSTRUCTION JUMP BRANCH_LEFT BRANCH_RIGHT STOP_ITERATION 非推奨のイベント BRANCH BRANCH イベントは 3.14 で非推奨になりました。 BRANCH_LEFT と BRANCH_RIGHT は個別に無 ... exception : BaseException ) -> object LINE 。 func ( code : CodeType , line_number : int ) -> object BRANCH_LEFT 、 BRANCH_RIGHT 、 JUMP 。 func ( code : CodeType , instruction_offset : int , destination_offset : int ) -> object destination_offset は、 ...
https://man.mtool.work/python/3.14/library/sys.monitoring.html
curses --- 文字セル表示のターミナル処理 8712
curses --- 文字セル表示のターミナル処理 ソースコード: Lib/curses curses モジュールは、移植可能な高度な端末処理の事実上の標準である curses ライブラリへのインターフェースを提供します。 curses が最も広く用いられているのは Unix 環境ですが、Wind ... character ch with attributes attr before the character under the cursor, or at (y, x) if specified. All characters to the right of the cursor are shifted one position right, with the rightmost character on the line being lost. The cursor position doe ... the character under the cursor, up to n characters. If n is negative, the entire string is inserted. All characters to the right of the cursor are shifted right, with the rightmost characters on the line being lost. The cursor position does not change ... 強調モード curses. A_UNDERLINE 下線モード curses. A_HORIZONTAL 水平強調 curses. A_LEFT 左強調 curses. A_LOW 下強調 curses. A_RIGHT 右強調 curses. A_TOP 上強調 curses. A_VERTICAL 垂直強調 Added in version 3.7: A_ITALIC が追加されました。 一部のメソッドが ...
https://man.mtool.work/python/3.14/library/curses.html
ast --- 抽象構文木 8582
ast --- 抽象構文木 ソースコード: Lib/ast.py ast モジュールは、Python の抽象構文を表す木を Python アプリケーションで処理するための機能を提供します。 抽象構文自体は Python のリリースごとに変わる可能性がありますが、このモジュールを使えば、現在 ... arser uses attributes ( int lineno , int col_offset , int ? end_lineno , int ? end_col_offset ) -- BoolOp() can use left & right? expr = BoolOp ( boolop op , expr * values ) | NamedExpr ( expr target , expr value ) | BinOp ( expr left , operator op , ... expr right ) | UnaryOp ( unaryop op , expr operand ) | Lambda ( arguments args , expr body ) | IfExp ( expr test , expr body , expr o ... al' ), indent = 4 )) Expression( body=UnaryOp( op=Not(), operand=Name(id='x', ctx=Load()))) class ast. BinOp ( left , op , right ) 加算や除算のような二項演算を表します。 op は演算子で、 left と right は任意の式ノードです。 >>> print ( ast . dump ( ast ...
https://man.mtool.work/python/3.14/library/ast.html
Unicode オブジェクトと codec 8304
Unicode オブジェクトと codec Unicode オブジェクト Python 3.3 で PEP 393 が実装されて以来、Unicode オブジェクトは内部で複数の表現形式を使っています。 これにより、メモリ効率を維持しながら Unicode 文字の全範囲を扱えます。 すべてのコードポイント ... ェクトに対し参照カウンタを 1 つ減らす (decref) する責任があります。 void PyUnicode_Append ( PyObject * * p_left , PyObject * right ) 次に属します: Stable ABI . 文字列 right を p_left の末尾に追加します。 p_left は Unicode オブジェクトへの 強参照 を指す必 ... す。 成功すると *p_left に結果への新しい強参照を設定します。 void PyUnicode_AppendAndDel ( PyObject * * p_left , PyObject * right ) 次に属します: Stable ABI . PyUnicode_Append() と同様ですが、 right の参照カウントを 1 減らす点だけが異なります。 PyObjec ... の関数は全て、例外が発生した場合には NULL または -1 を返します。 PyObject * PyUnicode_Concat ( PyObject * left , PyObject * right ) 戻り値: 新しい参照。 次に属します: Stable ABI . 二つの文字列を結合して、新たな Unicode 文字列を生成します。 PyObject * P ...
https://man.mtool.work/python/3.14/c-api/unicode.html
PREV 1 2 3 NEXT