Results of 1 - 4 of about 4 for jane (0.004 sec.)
- ソートのテクニック — Python 3.14.8 ドキュメント 11095
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » ソートのテクニック テーマ 自動 ライト ダーク | ソートのテクニック ¶ Author : Andrew Dalke and Raymond Hettinger Python のリストにはリストをインプレ
...成る対象をインデクスのどれかをキーとしてソートすることです。例えば: >>> student_tuples = [ ... ( 'john' , 'A' , 15 ), ... ( 'jane' , 'B' , 12 ), ... ( 'dave' , 'B' , 10 ), ... ] >>> sorted ( student_tuples , key = lambda student : student [ 2 ]) # sort...by age [('dave', 'B', 10), ('jane', 'B', 12), ('john', 'A', 15)] 同じテクニックは名前づけされた属性 (named attributes) を使うことでオブジェクトに対しても動作...pr (( self . name , self . grade , self . age )) >>> student_objects = [ ... Student ( 'john' , 'A' , 15 ), ... Student ( 'jane' , 'B' , 12 ), ... Student ( 'dave' , 'B' , 10 ), ... ] >>> sorted ( student_objects , key = lambda student : student . ag... - https://man.mtool.work/python/3.14/howto/sorting.html
- ソートのテクニック — Python 3.14.8 ドキュメント 11095
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » ソートのテクニック テーマ 自動 ライト ダーク | ソートのテクニック ¶ Author : Andrew Dalke and Raymond Hettinger Python のリストにはリストをインプレ
...成る対象をインデクスのどれかをキーとしてソートすることです。例えば: >>> student_tuples = [ ... ( 'john' , 'A' , 15 ), ... ( 'jane' , 'B' , 12 ), ... ( 'dave' , 'B' , 10 ), ... ] >>> sorted ( student_tuples , key = lambda student : student [ 2 ]) # sort...by age [('dave', 'B', 10), ('jane', 'B', 12), ('john', 'A', 15)] 同じテクニックは名前づけされた属性 (named attributes) を使うことでオブジェクトに対しても動作...pr (( self . name , self . grade , self . age )) >>> student_objects = [ ... Student ( 'john' , 'A' , 15 ), ... Student ( 'jane' , 'B' , 12 ), ... Student ( 'dave' , 'B' , 10 ), ... ] >>> sorted ( student_objects , key = lambda student : student . ag... - https://man.mtool.work/python/3.14/howto/sorting.html
- Regular expression HOWTO — Python 3.14.8 ドキュメント 7397
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Regular expression HOWTO テーマ 自動 ライト ダーク | Regular expression HOWTO ¶ Author : A.M. Kuchling < amk @ amk . ca > 概要 このドキュメントは
...のグループを groupdict() を使って辞書として取り出すこともできます: >>> m = re . match ( r '(?P<first>\w+) (?P<last>\w+)' , 'Jane Doe' ) >>> m . groupdict () {'first': 'Jane', 'last': 'Doe'} 名前つきグループは、番号を覚える代わりに簡単に覚えられる名前で... - https://man.mtool.work/python/3.14/howto/regex.html
- Regular expression HOWTO — Python 3.14.8 ドキュメント 7397
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Regular expression HOWTO テーマ 自動 ライト ダーク | Regular expression HOWTO ¶ Author : A.M. Kuchling < amk @ amk . ca > 概要 このドキュメントは
...のグループを groupdict() を使って辞書として取り出すこともできます: >>> m = re . match ( r '(?P<first>\w+) (?P<last>\w+)' , 'Jane Doe' ) >>> m . groupdict () {'first': 'Jane', 'last': 'Doe'} 名前つきグループは、番号を覚える代わりに簡単に覚えられる名前で... - https://man.mtool.work/python/3.14/howto/regex.html
PREV
1
NEXT