per page, with , order by , clip by
Results of 1 - 10 of about 19 for position (0.006 sec.)
cmd --- 行指向のコマンドインタープリターのサポート 13387
cmd --- 行指向のコマンドインタープリターのサポート ソースコード: Lib/cmd.py Cmd クラスでは、行指向のコマンドインタープリタを書くための簡単なフレームワークを提供します。テストハーネスや管理ツール、そして、後により洗練されたインターフェイスで ... left by given number of degrees: LEFT 90' left ( * parse ( arg )) def do_goto ( self , arg ): 'Move turtle to an absolute position with changing orientation. GOTO 100 200' goto ( * parse ( arg )) def do_home ( self , arg ): 'Return turtle to the home po ... le ( self , arg ): 'Draw circle with given radius an options extent and steps: CIRCLE 50' circle ( * parse ( arg )) def do_position ( self , arg ): 'Print the current turtle position: POSITION' print ( 'Current position is %d %d \n ' % position ()) def d ... p <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: FORWARD 10 (turtle) record spiral.cmd ...
https://man.mtool.work/python/3.14/library/cmd.html
turtle --- タートルグラフィックス 13387
turtle --- タートルグラフィックス ソースコード: Lib/turtle.py Turtle star 単純な動きを繰り返すプログラムで、タートルは複雑な図形を描けます。 x-y 平面の (0, 0) から動き出す、亀のロボットを想像してください。 import turtle の後に turtle.forwar ... stance ) パラメータ : distance -- 数 タートルが頭を向けている方へ、タートルを距離 distance だけ前進させます。 >>> turtle . position () (0.00,0.00) >>> turtle . forward ( 25 ) >>> turtle . position () (25.00,0.00) >>> turtle . forward ( - 75 ) >>> turtle ... . position () (-50.00,0.00) turtle. back ( distance ) turtle. bk ( distance ) turtle. backward ( distance ) パラメータ : distance -- ... 数 タートルを、向いている方向とは逆に distance だけ後退させます。 タートルの向きは変わりません。 >>> turtle . position () (0.00,0.00) >>> turtle . backward ( 30 ) >>> turtle . position () (-30.00,0.00) turtle. right ( angle ) turtle. rt ( an ...
https://man.mtool.work/python/3.14/library/turtle.html
タプルオブジェクト (tuple object) 8776
タプルオブジェクト (tuple object) type PyTupleObject この PyObject のサブタイプは Python のタプルオブジェクトを表現します。 PyTypeObject PyTuple_Type 次に属します: Stable ABI . この PyTypeObject のインスタンスは Python のタプル型を表現します ... uple_SetItem ( PyObject * p , Py_ssize_t pos , PyObject * o ) 次に属します: Stable ABI . Insert a reference to object o at position pos of the tuple pointed to by p . Return 0 on success. If pos is out of bounds, return -1 and set an IndexError exception ... tructSequence_GetItem ( PyObject * p , Py_ssize_t pos ) 戻り値: 借用参照。 次に属します: Stable ABI . Return the object at position pos in the struct sequence pointed to by p . Python を デバッグモード または アサーションを有効にして ビルドした場合、アサ ...
https://man.mtool.work/python/3.14/c-api/tuple.html
tokenize --- Python ソース用のトークナイザー 8623
tokenize --- Python ソース用のトークナイザー ソースコード: Lib/tokenize.py The tokenize module provides a lexical scanner for Python source code, implemented in Python. The scanner in this module returns comments as tokens as well, making i ... tokens, doubled braces are replaced by single braces. start A 2-tuple (srow, scol) of ints specifying the inclusive start position of the token in the source. Rows are numbered from 1 and columns from 0. Columns count Unicode code points; a tab counts a ... it to a tab stop. For an ENCODING token, this is (0, 0) . end A 2-tuple (erow, ecol) of ints specifying the exclusive end position of the token. Rows are numbered from 1 and columns from 0. For a token spanning multiple lines, erow is the final row and ...
https://man.mtool.work/python/3.14/library/tokenize.html
同期プリミティブ 8486
同期プリミティブ ソースコード: Lib/asyncio/locks.py asyncio の同期プリミティブは threading モジュールのそれと類似するようにデザインされていますが、2つの重要な注意事項があります: asyncio の同期プリミティブはスレッドセーフではありません。従っ ... なります。 これを使うと、後片付けなどの特別な処理を行うタスクを選べます。 例えば次のようにします。 ... async with barrier as position : if position == 0 : # 1 つのタスクだけがこれを表示する print ( 'End of *draining phase*' ) タスクの待機中にバリアが broke ...
https://man.mtool.work/python/3.14/library/asyncio-sync.html
What's New In Python 3.10 8332
What's New In Python 3.10 編集者 : Pablo Galindo Salgado この記事では Python 3.9 と比較した Python 3.10 の新機能を解説します。Python 3.10 は2021年10月4日にリリースされました。全詳細については 変更履歴 をご覧ください。 概要 -- リリースハイラ ... 具体的なメッセージが多数追加されました。 特に注目すべきものを以下に示します。 ブロックの前の : が存在しない: >>> if rocket . position > event_horizon File "<stdin>" , line 1 if rocket . position > event_horizon ^ SyntaxError : expected ':' (Pablo Galindo の ... 'except' or 'finally' block (Pablo Galindo の貢献による bpo-44305 ) 比較で == の代わりに = を使用している: >>> if rocket . position = event_horizon : File "<stdin>" , line 1 if rocket . position = event_horizon : ^ SyntaxError : cannot assign to attribut ... --enable-optimizations を指定して Python をビルドすると、コンパイル時とリンク時の両方のコマンドラインに -fno-semantic-interposition が追加されるようになりました。 これにより、 gcc で --enable-shared を指定してビルドした Python インタープリタが最大 30% 高 ...
https://man.mtool.work/python/3.14/whatsnew/3.10.html
xml.etree.ElementTree --- ElementTree XML API 8196
xml.etree.ElementTree --- ElementTree XML API Source code: Lib/xml/etree/ElementTree.py xml.etree.ElementTree モジュールは、XML データの解析と作成を行うシンプルで効率的な API を実装しています。 バージョン 3.3 で変更: このモジュールは利用出来 ... コンテンツと与えられた text が一致しない、 tag と名付けられた子要素を持つすべての要素を選択します。 Added in version 3.10. [position] 与えられた位置にあるすべての要素を選択します。位置は整数 (先頭は 1)、式 last() (末尾)、あるいは末尾からの相対位置 (例えば ... ) のいずれかで指定できます。 述語 (角括弧内の式) の前にはタグ名、アスタリスク、あるいはその他の述語がなければなりません。 position 述語の前にはタグ名がなければなりません。 リファレンス 関数 xml.etree.ElementTree. canonicalize ( xml_data = None , * , out ... らの数値エラーコードです。エラーコードの一覧とそれらの意味については、 xml.parsers.expat のドキュメントを参照してください。 position エラーが発生した場所を示す line と column 番号のタプルです。 脚注 [ 1 ] ( 1 , 2 , 3 , 4 ) XML 出力に含まれるエンコーディン ...
https://man.mtool.work/python/3.14/library/xml.etree.elementtree.html
Unicode HOWTO 8042
Unicode HOWTO Release : 1.12 この HOWTO 文書は、文字データの表現のための Unicode 仕様の Python におけるサポートについて論じ、さらに Unicode を使おうというときによく出喰わす多くの問題について説明します。 Unicode 入門 定義 今日のプログラムは広 ... ( "utf-8" , "strict" ) Traceback (most recent call last): ... UnicodeDecodeError : 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte >>> b ' \x80 abc' . decode ( "utf-8" , "replace" ) '\ufffdabc' >>> b ' \x80 abc' . decode ( "utf-8" ... e ( 'ascii' ) Traceback (most recent call last): ... UnicodeEncodeError : 'ascii' codec can't encode character '\ua000' in position 0: ordinal not in range(128) >>> u . encode ( 'ascii' , 'ignore' ) b'abcd' >>> u . encode ( 'ascii' , 'replace' ) b'?abcd? ...
https://man.mtool.work/python/3.14/howto/unicode.html
curses --- 文字セル表示のターミナル処理 8042
curses --- 文字セル表示のターミナル処理 ソースコード: Lib/curses curses モジュールは、移植可能な高度な端末処理の事実上の標準である curses ライブラリへのインターフェースを提供します。 curses が最も広く用いられているのは Unix 環境ですが、Wind ... efore 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 does not change (after moving to y , x , i ... 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 (after moving to y , x , if specified). window. insstr ( str [ , attr ] ) window. insstr ( y , x , str [ , ...
https://man.mtool.work/python/3.14/library/curses.html
mmap --- メモリマップファイルのサポート 7905
mmap --- メモリマップファイルのサポート 利用可能な環境 : not WASI. このモジュールは WebAssembly では動作しないか、利用不可です。詳しくは、 WebAssembly プラットフォーム を見てください。 Memory-mapped file objects behave like both bytearray a ... a subsequence by assigning to a slice: obj[i1:i2] = b'...' . You can also read and write data starting at the current file position, and seek() through the file to different positions. メモリマップドファイルは Unix と Windows で異なる mmap コンストラクタ ...
https://man.mtool.work/python/3.14/library/mmap.html
PREV 1 2 NEXT