Results of 1 - 10 of about 28 for 座標 (0.013 sec.)
- turtle --- Turtle graphics — Python 3.14.8 ドキュメント 11945
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » turtle --- Turtle graphics テーマ 自動 ライト ダーク | turtle --- Turtle graphics ¶ ソースコード
...rtle mode, see mode() . >>> turtle . goto ( 10 , 10 ) >>> turtle . towards ( 0 , 0 ) 225.0 turtle. xcor ( ) ¶ タートルの x 座標を返します。 >>> turtle . home () >>> turtle . left ( 50 ) >>> turtle . forward ( 100 ) >>> turtle . pos () (64.28,76.60) >>...> print ( round ( turtle . xcor (), 5 )) 64.27876 turtle. ycor ( ) ¶ タートルの y 座標を返します。 >>> turtle . home () >>> turtle . left ( 60 ) >>> turtle . forward ( 100 ) >>> print ( turtle . pos ()) (50.00,...トを利用する ¶ turtle. onclick ( fun , btn = 1 , add = None ) パラメータ : fun -- 2引数の関数でキャンバスのクリックされた点の座標を引数として呼び出されるものです btn -- マウスボタンの番号、デフォルトは 1 (左マウスボタン) add -- True または False -- True... - https://man.mtool.work/python/3.14/library/turtle.html
- turtle --- Turtle graphics — Python 3.14.8 ドキュメント 11945
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » turtle --- Turtle graphics テーマ 自動 ライト ダーク | turtle --- Turtle graphics ¶ ソースコード
...rtle mode, see mode() . >>> turtle . goto ( 10 , 10 ) >>> turtle . towards ( 0 , 0 ) 225.0 turtle. xcor ( ) ¶ タートルの x 座標を返します。 >>> turtle . home () >>> turtle . left ( 50 ) >>> turtle . forward ( 100 ) >>> turtle . pos () (64.28,76.60) >>...> print ( round ( turtle . xcor (), 5 )) 64.27876 turtle. ycor ( ) ¶ タートルの y 座標を返します。 >>> turtle . home () >>> turtle . left ( 60 ) >>> turtle . forward ( 100 ) >>> print ( turtle . pos ()) (50.00,...トを利用する ¶ turtle. onclick ( fun , btn = 1 , add = None ) パラメータ : fun -- 2引数の関数でキャンバスのクリックされた点の座標を引数として呼び出されるものです btn -- マウスボタンの番号、デフォルトは 1 (左マウスボタン) add -- True または False -- True... - https://man.mtool.work/python/3.14/library/turtle.html
- cmath --- 複素数用の数学関数 — Python 3.14.8 ドキュメント 11552
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » cmath --- 複素数用の数学関数 テーマ 自動 ライト ダーク | cmath --- 複素数用の数学関数 ¶ このモジュールは、複
...τ = 2 π = 6.283185... inf 正の無限大 infj Pure imaginary infinity nan 非数 "Not a number" (NaN) nanj Pure imaginary NaN 極座標変換 ¶ A Python complex number z is stored internally using rectangular or Cartesian coordinates. It is completely determine...d by its real part z.real and its imaginary part z.imag . 極座標 は複素数を表現する別の方法です。極座標では、複素数 z は半径 r と位相角 phi で定義されます。半径 r は z から原点までの距離で...相 phi は x 軸の正の部分から原点と z を結んだ線分までの角度を反時計回りにラジアンで測った値です。 次の関数はネイティブの直交座標を極座標に変換したりその逆を行うのに使えます。 cmath. phase ( z ) ¶ Return the phase of z (also known as the argument of z )... - https://man.mtool.work/python/3.14/library/cmath.html
- cmath --- 複素数用の数学関数 — Python 3.14.8 ドキュメント 11552
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » cmath --- 複素数用の数学関数 テーマ 自動 ライト ダーク | cmath --- 複素数用の数学関数 ¶ このモジュールは、複
...τ = 2 π = 6.283185... inf 正の無限大 infj Pure imaginary infinity nan 非数 "Not a number" (NaN) nanj Pure imaginary NaN 極座標変換 ¶ A Python complex number z is stored internally using rectangular or Cartesian coordinates. It is completely determine...d by its real part z.real and its imaginary part z.imag . 極座標 は複素数を表現する別の方法です。極座標では、複素数 z は半径 r と位相角 phi で定義されます。半径 r は z から原点までの距離で...相 phi は x 軸の正の部分から原点と z を結んだ線分までの角度を反時計回りにラジアンで測った値です。 次の関数はネイティブの直交座標を極座標に変換したりその逆を行うのに使えます。 cmath. phase ( z ) ¶ Return the phase of z (also known as the argument of z )... - https://man.mtool.work/python/3.14/library/cmath.html
- What's New In Python 3.10 — Python 3.14.8 ドキュメント 9143
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.10 テーマ 自動 ライト ダーク | What's New In Python 3.10 ¶ 編集者 : Pablo Galindo Salgado この記事では Python 3.9 と
...ック代入のように記述することで、変数をバインドするために使用することもできます。次の例では、データポイントを展開して、その x 座標と y 座標を取得しています: # point は (x, y) のタプル match point : case ( 0 , 0 ): print ( "Origin" ) case ( 0 , y ): print...location ( point ): match point : case Point ( x = 0 , y = 0 ): print ( "原点" ) case Point ( x = 0 , y = y ): print ( f "Y座標は { y } で点はY軸上にある" ) case Point ( x = x , y = 0 ): print ( f "X座標は { x } で点はX軸上にある" ) case Point (): pri...nt ( "点は平面上のそれ以外のどこかにある" ) case _ : print ( "座標ではない" ) 位置パラメータを用いたパターン ¶ いくつかの組み込みクラスでは位置引数が使用でき、属性の順番を提供します(例: デー... - https://man.mtool.work/python/3.14/whatsnew/3.10.html
- 4. その他の制御フローツール — Python 3.14.8 ドキュメント 9143
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 4. その他の制御フローツール テーマ 自動 ライト ダーク | 4. その他の制御フローツール ¶ 前章で紹介した while 文の他にも、 Python にはいくつ
...ーンにできます: case 401 | 403 | 404 : return "Not allowed" パターンはアンパック代入ができ、変数に結びつけられます: # point(座標) は (x, y) のタプル match point : case ( 0 , 0 ): print ( "原点" ) case ( 0 , y ): print ( f "Y= { y } " ) case ( x , 0 ):...print ( f "X= { x } " ) case ( x , y ): print ( f "X= { x } , Y= { y } " ) case _ : raise ValueError ( "座標ではない" ) このコードは注意して見てください! 最初のパターンには2つのリテラルがあり、上で示したリテラルパターンの拡張と考える...} " ) case Point ( x = x , y = 0 ): print ( f "X= { x } " ) case Point (): print ( "それ以外のどこか" ) case _ : print ( "座標ではない" ) いくつかの組み込みクラスでは位置引数が使用でき、属性の順番を提供します(例: データクラス)。クラスの __match_args_... - https://man.mtool.work/python/3.14/tutorial/controlflow.html
- What's New In Python 3.10 — Python 3.14.8 ドキュメント 9143
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.10 テーマ 自動 ライト ダーク | What's New In Python 3.10 ¶ 編集者 : Pablo Galindo Salgado この記事では Python 3.9 と
...ック代入のように記述することで、変数をバインドするために使用することもできます。次の例では、データポイントを展開して、その x 座標と y 座標を取得しています: # point は (x, y) のタプル match point : case ( 0 , 0 ): print ( "Origin" ) case ( 0 , y ): print...location ( point ): match point : case Point ( x = 0 , y = 0 ): print ( "原点" ) case Point ( x = 0 , y = y ): print ( f "Y座標は { y } で点はY軸上にある" ) case Point ( x = x , y = 0 ): print ( f "X座標は { x } で点はX軸上にある" ) case Point (): pri...nt ( "点は平面上のそれ以外のどこかにある" ) case _ : print ( "座標ではない" ) 位置パラメータを用いたパターン ¶ いくつかの組み込みクラスでは位置引数が使用でき、属性の順番を提供します(例: デー... - https://man.mtool.work/python/3.14/whatsnew/3.10.html
- 4. その他の制御フローツール — Python 3.14.8 ドキュメント 8750
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 4. その他の制御フローツール テーマ 自動 ライト ダーク | 4. その他の制御フローツール ¶ 前章で紹介した while 文の他にも、 Python にはいくつ
...ーンにできます: case 401 | 403 | 404 : return "Not allowed" パターンはアンパック代入ができ、変数に結びつけられます: # point(座標) は (x, y) のタプル match point : case ( 0 , 0 ): print ( "原点" ) case ( 0 , y ): print ( f "Y= { y } " ) case ( x , 0 ):...print ( f "X= { x } " ) case ( x , y ): print ( f "X= { x } , Y= { y } " ) case _ : raise ValueError ( "座標ではない" ) このコードは注意して見てください! 最初のパターンには2つのリテラルがあり、上で示したリテラルパターンの拡張と考える...} " ) case Point ( x = x , y = 0 ): print ( f "X= { x } " ) case Point (): print ( "それ以外のどこか" ) case _ : print ( "座標ではない" ) いくつかの組み込みクラスでは位置引数が使用でき、属性の順番を提供します(例: データクラス)。クラスの __match_args_... - https://man.mtool.work/python/3.14/tutorial/controlflow.html
- math --- 数学関数 — Python 3.14.8 ドキュメント 7947
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » math --- 数学関数 テーマ 自動 ライト ダーク | math --- 数学関数 ¶ This module provides access to common math
...変更されました。 math. sqrt ( x ) ¶ x の平方根を返します。 Summation and product functions ¶ math. dist ( p , q ) ¶ それぞれ座標のシーケンス (またはイテラブル) として与えられる点 p と q の間のユークリッド距離を返します。二点の次元は同じでなければなりま...mation . math. hypot ( * coordinates ) ¶ ユークリッドノルム sqrt(sum(x**2 for x in coordinates)) を返します。これは原点から座標で与えられる点までのベクトルの長さです。 二次元の点 (x, y) では、これは直角三角形の斜辺をピタゴラスの定理 sqrt(x*x + y*y) を...の間です。 math. atan2 ( y , x ) ¶ atan(y / x) を、ラジアンで返します。戻り値は -pi から pi の間になります。この角度は、極座標平面において原点から (x, y) へのベクトルが X 軸の正の方向となす角です。 atan2() のポイントは、両方の入力の符号が既知であるた... - https://man.mtool.work/python/3.14/library/math.html
- math --- 数学関数 — Python 3.14.8 ドキュメント 7947
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » math --- 数学関数 テーマ 自動 ライト ダーク | math --- 数学関数 ¶ This module provides access to common math
...変更されました。 math. sqrt ( x ) ¶ x の平方根を返します。 Summation and product functions ¶ math. dist ( p , q ) ¶ それぞれ座標のシーケンス (またはイテラブル) として与えられる点 p と q の間のユークリッド距離を返します。二点の次元は同じでなければなりま...mation . math. hypot ( * coordinates ) ¶ ユークリッドノルム sqrt(sum(x**2 for x in coordinates)) を返します。これは原点から座標で与えられる点までのベクトルの長さです。 二次元の点 (x, y) では、これは直角三角形の斜辺をピタゴラスの定理 sqrt(x*x + y*y) を...の間です。 math. atan2 ( y , x ) ¶ atan(y / x) を、ラジアンで返します。戻り値は -pi から pi の間になります。この角度は、極座標平面において原点から (x, y) へのベクトルが X 軸の正の方向となす角です。 atan2() のポイントは、両方の入力の符号が既知であるた... - https://man.mtool.work/python/3.14/library/math.html