per page, with , order by , clip by
Results of 1 - 2 of about 2 for chores (0.004 sec.)
列挙型 HOWTO — Python 3.14.8 ドキュメント 11228
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 列挙型 HOWTO テーマ 自動 ライト ダーク | 列挙型 HOWTO ¶ Enum は、ユニークな値に束縛されたシンボル名の集合です。グローバル変数に似ていますが、 repr ... kday enum is great if our variable only needs one day, but what if we need several? Maybe we're writing a function to plot chores during a week, and don't want to use a list -- we could use a different type of Enum : >>> from enum import Flag >>> class ... : >>> for day in weekend : ... print ( day ) Weekday.SATURDAY Weekday.SUNDAY さて、いくつかの家事を設定してみましょう: >>> chores_for_ethan = { ... 'feed the cat' : Weekday . MONDAY | Weekday . WEDNESDAY | Weekday . FRIDAY , ... 'do the dishes' : Weekd ... URSDAY , ... 'answer SO questions' : Weekday . SATURDAY , ... } 指定された日の家事を表示する関数も作成します: >>> def show_chores ( chores , day ): ... for chore , days in chores . items (): ... if day in days : ... print ( chore ) ... >>> show_chores ...
https://man.mtool.work/python/3.14/howto/enum.html
列挙型 HOWTO — Python 3.14.8 ドキュメント 7485
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 列挙型 HOWTO テーマ 自動 ライト ダーク | 列挙型 HOWTO ¶ Enum は、ユニークな値に束縛されたシンボル名の集合です。グローバル変数に似ていますが、 repr ... kday enum is great if our variable only needs one day, but what if we need several? Maybe we're writing a function to plot chores during a week, and don't want to use a list -- we could use a different type of Enum : >>> from enum import Flag >>> class ... : >>> for day in weekend : ... print ( day ) Weekday.SATURDAY Weekday.SUNDAY さて、いくつかの家事を設定してみましょう: >>> chores_for_ethan = { ... 'feed the cat' : Weekday . MONDAY | Weekday . WEDNESDAY | Weekday . FRIDAY , ... 'do the dishes' : Weekd ... URSDAY , ... 'answer SO questions' : Weekday . SATURDAY , ... } 指定された日の家事を表示する関数も作成します: >>> def show_chores ( chores , day ): ... for chore , days in chores . items (): ... if day in days : ... print ( chore ) ... >>> show_chores ...
https://man.mtool.work/python/3.14/howto/enum.html
PREV 1 NEXT