per page, with , order by , clip by
Results of 1 - 10 of about 57 for Green (0.008 sec.)
列挙型 HOWTO — Python 3.14.8 ドキュメント 13216
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 列挙型 HOWTO テーマ 自動 ライト ダーク | 列挙型 HOWTO ¶ Enum は、ユニークな値に束縛されたシンボル名の集合です。グローバル変数に似ていますが、 repr ... = 6 ... SUNDAY = 7 あるいは、RGB三原色でも構いません: >>> from enum import Enum >>> class Color ( Enum ): ... RED = 1 ... GREEN = 2 ... BLUE = 3 ご覧の通り、 Enum の作成は Enum 自体を継承するクラスを作成するのと同じくらい簡単です。 注釈 Enumメンバーは ... 列挙型メンバーに 名前 でアクセスしたい場合はアイテムとしてアクセスできます: >>> Color [ 'RED' ] <Color.RED: 1> >>> Color [ 'GREEN' ] <Color.GREEN: 2> If you have an enum member and need its name or value : >>> member = Color . RED >>> member . name 'RE ... 場合、 auto が使えます: >>> from enum import Enum , auto >>> class Color ( Enum ): ... RED = auto () ... BLUE = auto () ... GREEN = auto () ... >>> [ member . value for member in Color ] [1, 2, 3] The values are chosen by _generate_next_value_() , whic ...
https://man.mtool.work/python/3.14/howto/enum.html
列挙型 HOWTO — Python 3.14.8 ドキュメント 13216
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 列挙型 HOWTO テーマ 自動 ライト ダーク | 列挙型 HOWTO ¶ Enum は、ユニークな値に束縛されたシンボル名の集合です。グローバル変数に似ていますが、 repr ... = 6 ... SUNDAY = 7 あるいは、RGB三原色でも構いません: >>> from enum import Enum >>> class Color ( Enum ): ... RED = 1 ... GREEN = 2 ... BLUE = 3 ご覧の通り、 Enum の作成は Enum 自体を継承するクラスを作成するのと同じくらい簡単です。 注釈 Enumメンバーは ... 列挙型メンバーに 名前 でアクセスしたい場合はアイテムとしてアクセスできます: >>> Color [ 'RED' ] <Color.RED: 1> >>> Color [ 'GREEN' ] <Color.GREEN: 2> If you have an enum member and need its name or value : >>> member = Color . RED >>> member . name 'RE ... 場合、 auto が使えます: >>> from enum import Enum , auto >>> class Color ( Enum ): ... RED = auto () ... BLUE = auto () ... GREEN = auto () ... >>> [ member . value for member in Color ] [1, 2, 3] The values are chosen by _generate_next_value_() , whic ...
https://man.mtool.work/python/3.14/howto/enum.html
enum --- 列挙型のサポート — Python 3.14.8 ドキュメント 11983
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » enum --- 列挙型のサポート テーマ 自動 ライト ダーク | enum --- 列挙型のサポート ¶ Added in version 3.4. ソースコード: Li ... 数呼び出し構文を使用して作成されます: >>> from enum import Enum >>> # class syntax >>> class Color ( Enum ): ... RED = 1 ... GREEN = 2 ... BLUE = 3 >>> # functional syntax >>> Color = Enum ( 'Color' , [( 'RED' , 1 ), ( 'GREEN' , 2 ), ( 'BLUE' , 3 )]) En ... 詳細は Enum はどう違うのか? を参照してください。 注釈 用語 クラス Color は 列挙型 (または Enum ) です 属性 Color.RED , Color.GREEN などは 列挙型のメンバー (または メンバー ) で、機能的には定数です。 列挙型のメンバーは 名前 と 値 を持ちます ( Color.RED の ... ¶ ['__class__', '__doc__', '__members__', '__module__'] と、 cls に属するメンバー名を返します: >>> dir ( Color ) ['BLUE', 'GREEN', 'RED', '__class__', '__contains__', '__doc__', '__getitem__', '__init_subclass__', '__iter__', '__len__', '__members__', ...
https://man.mtool.work/python/3.14/library/enum.html
enum --- 列挙型のサポート — Python 3.14.8 ドキュメント 11983
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » enum --- 列挙型のサポート テーマ 自動 ライト ダーク | enum --- 列挙型のサポート ¶ Added in version 3.4. ソースコード: Li ... 数呼び出し構文を使用して作成されます: >>> from enum import Enum >>> # class syntax >>> class Color ( Enum ): ... RED = 1 ... GREEN = 2 ... BLUE = 3 >>> # functional syntax >>> Color = Enum ( 'Color' , [( 'RED' , 1 ), ( 'GREEN' , 2 ), ( 'BLUE' , 3 )]) En ... 詳細は Enum はどう違うのか? を参照してください。 注釈 用語 クラス Color は 列挙型 (または Enum ) です 属性 Color.RED , Color.GREEN などは 列挙型のメンバー (または メンバー ) で、機能的には定数です。 列挙型のメンバーは 名前 と 値 を持ちます ( Color.RED の ... ¶ ['__class__', '__doc__', '__members__', '__module__'] と、 cls に属するメンバー名を返します: >>> dir ( Color ) ['BLUE', 'GREEN', 'RED', '__class__', '__contains__', '__doc__', '__getitem__', '__init_subclass__', '__iter__', '__len__', '__members__', ...
https://man.mtool.work/python/3.14/library/enum.html
colorsys --- 色体系間の変換 — Python 3.14.8 ドキュメント 7577
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » マルチメディアサービス » colorsys --- 色体系間の変換 テーマ 自動 ライト ダーク | colorsys --- 色体系間の変換 ¶ ソースコード: Lib/co ... lorsys.py The colorsys module defines bidirectional conversions of color values between colors expressed in the RGB (Red Green Blue) color space used in computer monitors and three other coordinate systems: YIQ, HLS (Hue Lightness Saturation) and HS ... defines values space coordinate Saturation coordinates https 体系 ソースコード bidirectional conversions colors expressed Green Blue used computer monitors three systems 前のトピックへ wave --- WAV ファイルの読み書き 次のトピックへ 国際化 This page R ...
https://man.mtool.work/python/3.14/library/colorsys.html
3. 形式ばらない Python の紹介 — Python 3.14.8 ドキュメント 7283
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 3. 形式ばらない Python の紹介 テーマ 自動 ライト ダーク | 3. 形式ばらない Python の紹介 ¶ 以下のサンプルでは、入力と出力はプロンプト ( >> ... ある変数を通してリストに任意の変更を行うと、そのリストを参照したすべての他の変数を通して確認できます。: >>> rgb = [ "Red" , "Green" , "Blue" ] >>> rgba = rgb >>> id ( rgb ) == id ( rgba ) # 同じオブジェクトを参照している True >>> rgba . append ( "Alph" ... ) >>> rgb ["Red", "Green", "Blue", "Alph"] 全てのスライス操作は、指定された要素を含む新しいリストを返します。例えば、次のスライスは、リストの 浅いコ ... ピー を返します。: >>> correct_rgba = rgba [:] >>> correct_rgba [ - 1 ] = "Alpha" >>> correct_rgba ["Red", "Green", "Blue", "Alpha"] >>> rgba ["Red", "Green", "Blue", "Alph"] スライスには、代入もできます。スライスの代入で、リストのサイズ ...
https://man.mtool.work/python/3.14/tutorial/introduction.html
3. 形式ばらない Python の紹介 — Python 3.14.8 ドキュメント 7283
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 3. 形式ばらない Python の紹介 テーマ 自動 ライト ダーク | 3. 形式ばらない Python の紹介 ¶ 以下のサンプルでは、入力と出力はプロンプト ( >> ... ある変数を通してリストに任意の変更を行うと、そのリストを参照したすべての他の変数を通して確認できます。: >>> rgb = [ "Red" , "Green" , "Blue" ] >>> rgba = rgb >>> id ( rgb ) == id ( rgba ) # 同じオブジェクトを参照している True >>> rgba . append ( "Alph" ... ) >>> rgb ["Red", "Green", "Blue", "Alph"] 全てのスライス操作は、指定された要素を含む新しいリストを返します。例えば、次のスライスは、リストの 浅いコ ... ピー を返します。: >>> correct_rgba = rgba [:] >>> correct_rgba [ - 1 ] = "Alpha" >>> correct_rgba ["Red", "Green", "Blue", "Alpha"] >>> rgba ["Red", "Green", "Blue", "Alph"] スライスには、代入もできます。スライスの代入で、リストのサイズ ...
https://man.mtool.work/python/3.14/tutorial/introduction.html
4. その他の制御フローツール — Python 3.14.8 ドキュメント 7225
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 4. その他の制御フローツール テーマ 自動 ライト ダーク | 4. その他の制御フローツール ¶ 前章で紹介した while 文の他にも、 Python にはいくつ ... names to prevent them from being interpreted as capture variables: from enum import Enum class Color ( Enum ): RED = 'red' GREEN = 'green' BLUE = 'blue' color = Color ( input ( "Enter your choice of 'red', 'blue' or 'green': " )) match color : case Co ... lor . RED : print ( "I see red!" ) case Color . GREEN : print ( "Grass is green" ) case Color . BLUE : print ( "I'm feeling the blues :(" ) より詳細な説明と追加の例は PEP 636 に ...
https://man.mtool.work/python/3.14/tutorial/controlflow.html
4. その他の制御フローツール — Python 3.14.8 ドキュメント 7225
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 4. その他の制御フローツール テーマ 自動 ライト ダーク | 4. その他の制御フローツール ¶ 前章で紹介した while 文の他にも、 Python にはいくつ ... names to prevent them from being interpreted as capture variables: from enum import Enum class Color ( Enum ): RED = 'red' GREEN = 'green' BLUE = 'blue' color = Color ( input ( "Enter your choice of 'red', 'blue' or 'green': " )) match color : case Co ... lor . RED : print ( "I see red!" ) case Color . GREEN : print ( "Grass is green" ) case Color . BLUE : print ( "I'm feeling the blues :(" ) より詳細な説明と追加の例は PEP 636 に ...
https://man.mtool.work/python/3.14/tutorial/controlflow.html
tkinter.colorchooser --- カラー選択ダイアログ — Python 3.14.8 ドキュメント 7166
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » tkinter.colorchooser --- カラー選択ダイアログ テーマ 自動 ライト ダーク | tkinter.colorchooser ... the color selected when the dialog opens. The return value is a tuple ((r, g, b), hexstr) , where r , g and b are the red, green and blue components as integers in the range 0–255 and hexstr is the equivalent Tk color string, such as '#ff8000' . If th ...
https://man.mtool.work/python/3.14/library/tkinter.colorchooser.html
PREV 1 2 3 4 5 6 NEXT