Results of 1 - 10 of about 74 for blue (0.008 sec.)
- 列挙型 HOWTO — Python 3.14.8 ドキュメント 12790
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 列挙型 HOWTO テーマ 自動 ライト ダーク | 列挙型 HOWTO ¶ Enum は、ユニークな値に束縛されたシンボル名の集合です。グローバル変数に似ていますが、 repr
...Y = 7 あるいは、RGB三原色でも構いません: >>> from enum import Enum >>> class Color ( Enum ): ... RED = 1 ... GREEN = 2 ... BLUE = 3 ご覧の通り、 Enum の作成は Enum 自体を継承するクラスを作成するのと同じくらい簡単です。 注釈 Enumメンバーは大文字/小文字...D と書くのが無理な場合など)。 Enum ではそのようなアクセスも可能です: >>> Color ( 1 ) <Color.RED: 1> >>> Color ( 3 ) <Color.BLUE: 3> 列挙型メンバーに 名前 でアクセスしたい場合はアイテムとしてアクセスできます: >>> Color [ 'RED' ] <Color.RED: 1> >>> Col...正確な値が重要でない場合、 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_... - https://man.mtool.work/python/3.14/howto/enum.html
- 列挙型 HOWTO — Python 3.14.8 ドキュメント 12790
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 列挙型 HOWTO テーマ 自動 ライト ダーク | 列挙型 HOWTO ¶ Enum は、ユニークな値に束縛されたシンボル名の集合です。グローバル変数に似ていますが、 repr
...Y = 7 あるいは、RGB三原色でも構いません: >>> from enum import Enum >>> class Color ( Enum ): ... RED = 1 ... GREEN = 2 ... BLUE = 3 ご覧の通り、 Enum の作成は Enum 自体を継承するクラスを作成するのと同じくらい簡単です。 注釈 Enumメンバーは大文字/小文字...D と書くのが無理な場合など)。 Enum ではそのようなアクセスも可能です: >>> Color ( 1 ) <Color.RED: 1> >>> Color ( 3 ) <Color.BLUE: 3> 列挙型メンバーに 名前 でアクセスしたい場合はアイテムとしてアクセスできます: >>> Color [ 'RED' ] <Color.RED: 1> >>> Col...正確な値が重要でない場合、 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_... - https://man.mtool.work/python/3.14/howto/enum.html
- enum --- 列挙型のサポート — Python 3.14.8 ドキュメント 11912
- ナビゲーション 索引 モジュール | 次へ | 前へ | 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 )]) Enum の作成に c...バー (または メンバー ) で、機能的には定数です。 列挙型のメンバーは 名前 と 値 を持ちます ( Color.RED の名前は RED 、 Color.BLUE の値は 3 など。) モジュールの内容 ¶ EnumType Enumおよびそのサブクラスのための type です。 Enum 列挙型定数を作成する基底クラ...( cls ) ¶ ['__class__', '__doc__', '__members__', '__module__'] と、 cls に属するメンバー名を返します: >>> dir ( Color ) ['BLUE', 'GREEN', 'RED', '__class__', '__contains__', '__doc__', '__getitem__', '__init_subclass__', '__iter__', '__len__', '__me... - https://man.mtool.work/python/3.14/library/enum.html
- enum --- 列挙型のサポート — Python 3.14.8 ドキュメント 11912
- ナビゲーション 索引 モジュール | 次へ | 前へ | 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 )]) Enum の作成に c...バー (または メンバー ) で、機能的には定数です。 列挙型のメンバーは 名前 と 値 を持ちます ( Color.RED の名前は RED 、 Color.BLUE の値は 3 など。) モジュールの内容 ¶ EnumType Enumおよびそのサブクラスのための type です。 Enum 列挙型定数を作成する基底クラ...( cls ) ¶ ['__class__', '__doc__', '__members__', '__module__'] と、 cls に属するメンバー名を返します: >>> dir ( Color ) ['BLUE', 'GREEN', 'RED', '__class__', '__contains__', '__doc__', '__getitem__', '__init_subclass__', '__iter__', '__len__', '__me... - https://man.mtool.work/python/3.14/library/enum.html
- ソートのテクニック — Python 3.14.8 ドキュメント 8917
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » ソートのテクニック テーマ 自動 ライト ダーク | ソートのテクニック ¶ Author : Andrew Dalke and Raymond Hettinger Python のリストにはリストをインプレ
...います。これはレコードの中に同じキーがある場合、元々の順序が維持されるということを意味します。 >>> data = [( 'red' , 1 ), ( 'blue' , 1 ), ( 'red' , 2 ), ( 'blue' , 2 )] >>> sorted ( data , key = itemgetter ( 0 )) [('blue', 1), ('blue', 2), ('red', 1),...('red', 2)] 二つの blue のレコードが元々の順序を維持して、 ('blue', 1) が ('blue', 2) の前にあることに注意してください。 この素晴しい性質によって複...面白いことにこの影響はパラメータ無しで reversed() 関数を二回使うことで模倣することができます: >>> data = [( 'red' , 1 ), ( 'blue' , 1 ), ( 'red' , 2 ), ( 'blue' , 2 )] >>> standard_way = sorted ( data , key = itemgetter ( 0 ), reverse = True ) >>> dou... - https://man.mtool.work/python/3.14/howto/sorting.html
- ソートのテクニック — Python 3.14.8 ドキュメント 8722
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » ソートのテクニック テーマ 自動 ライト ダーク | ソートのテクニック ¶ Author : Andrew Dalke and Raymond Hettinger Python のリストにはリストをインプレ
...います。これはレコードの中に同じキーがある場合、元々の順序が維持されるということを意味します。 >>> data = [( 'red' , 1 ), ( 'blue' , 1 ), ( 'red' , 2 ), ( 'blue' , 2 )] >>> sorted ( data , key = itemgetter ( 0 )) [('blue', 1), ('blue', 2), ('red', 1),...('red', 2)] 二つの blue のレコードが元々の順序を維持して、 ('blue', 1) が ('blue', 2) の前にあることに注意してください。 この素晴しい性質によって複...面白いことにこの影響はパラメータ無しで reversed() 関数を二回使うことで模倣することができます: >>> data = [( 'red' , 1 ), ( 'blue' , 1 ), ( 'red' , 2 ), ( 'blue' , 2 )] >>> standard_way = sorted ( data , key = itemgetter ( 0 ), reverse = True ) >>> dou... - https://man.mtool.work/python/3.14/howto/sorting.html
- collections --- コンテナデータ型 — Python 3.14.8 ドキュメント 8387
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » collections --- コンテナデータ型 テーマ 自動 ライト ダーク | collections --- コンテナデータ型 ¶ ソースコード: Lib/collec
...n mapping : del mapping [ key ] return raise KeyError ( key ) >>> d = DeepChainMap ({ 'zebra' : 'black' }, { 'elephant' : 'blue' }, { 'lion' : 'yellow' }) >>> d [ 'lion' ] = 'orange' # update an existing key two levels down >>> d [ 'snake' ] = 'red'...ツールが提供されています。例えば: >>> # Tally occurrences of words in a list >>> cnt = Counter () >>> for word in [ 'red' , 'blue' , 'red' , 'green' , 'blue' , 'blue' ]: ... cnt [ word ] += 1 ... >>> cnt Counter({'blue': 3, 'red': 2, 'green': 1}) >>> #...() # a new, empty counter >>> c = Counter ( 'gallahad' ) # a new counter from an iterable >>> c = Counter ({ 'red' : 4 , 'blue' : 2 }) # a new counter from a mapping >>> c = Counter ( cats = 4 , dogs = 8 ) # a new counter from keyword args カウンタオ... - https://man.mtool.work/python/3.14/library/collections.html
- collections --- コンテナデータ型 — Python 3.14.8 ドキュメント 8248
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » collections --- コンテナデータ型 テーマ 自動 ライト ダーク | collections --- コンテナデータ型 ¶ ソースコード: Lib/collec
...n mapping : del mapping [ key ] return raise KeyError ( key ) >>> d = DeepChainMap ({ 'zebra' : 'black' }, { 'elephant' : 'blue' }, { 'lion' : 'yellow' }) >>> d [ 'lion' ] = 'orange' # update an existing key two levels down >>> d [ 'snake' ] = 'red'...ツールが提供されています。例えば: >>> # Tally occurrences of words in a list >>> cnt = Counter () >>> for word in [ 'red' , 'blue' , 'red' , 'green' , 'blue' , 'blue' ]: ... cnt [ word ] += 1 ... >>> cnt Counter({'blue': 3, 'red': 2, 'green': 1}) >>> #...() # a new, empty counter >>> c = Counter ( 'gallahad' ) # a new counter from an iterable >>> c = Counter ({ 'red' : 4 , 'blue' : 2 }) # a new counter from a mapping >>> c = Counter ( cats = 4 , dogs = 8 ) # a new counter from keyword args カウンタオ... - https://man.mtool.work/python/3.14/library/collections.html
- colorsys --- 色体系間の変換 — Python 3.14.8 ドキュメント 7259
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » マルチメディアサービス » colorsys --- 色体系間の変換 テーマ 自動 ライト ダーク | colorsys --- 色体系間の変換 ¶ ソースコード: Lib/co
...ys.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 HSV (Hu...es values space coordinate Saturation coordinates https 体系 ソースコード bidirectional conversions colors expressed Green Blue used computer monitors three systems 前のトピックへ wave --- WAV ファイルの読み書き 次のトピックへ 国際化 This page Report... - https://man.mtool.work/python/3.14/library/colorsys.html
- turtle --- Turtle graphics — Python 3.14.8 ドキュメント 7119
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » turtle --- Turtle graphics テーマ 自動 ライト ダーク | turtle --- Turtle graphics ¶ ソースコード
...commands also have shorter aliases, such as fd() for forward() . Pen の制御 ¶ Try changing the color - for example, color('blue') - and width of the line - for example, width(3) - and then drawing again. You can also move the turtle around without dr...algorithmic patterns ¶ Using loops, it's possible to build up geometric patterns: for steps in range ( 100 ): for c in ( 'blue' , 'red' , 'green' ): color ( c ) forward ( steps ) right ( 30 ) - which of course, are limited only by the imagination! L...of pensize+4 and 2*pensize is used. >>> turtle . home () >>> turtle . dot () >>> turtle . fd ( 50 ); turtle . dot ( 20 , "blue" ); turtle . fd ( 50 ) >>> turtle . position () (100.00,-0.00) >>> turtle . heading () 0.0 turtle. stamp ( ) ¶ キャンバス上... - https://man.mtool.work/python/3.14/library/turtle.html