Results of 1 - 10 of about 15 for grade (0.008 sec.)
- ソートのテクニック — Python 3.14.8 ドキュメント 13079
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » ソートのテクニック テーマ 自動 ライト ダーク | ソートのテクニック ¶ Author : Andrew Dalke and Raymond Hettinger Python のリストにはリストをインプレ
...med attributes) を使うことでオブジェクトに対しても動作します。例えば: >>> class Student : ... def __init__ ( self , name , grade , age ): ... self . name = name ... self . grade = grade ... self . age = age ... def __repr__ ( self ): ... return repr (...( self . name , self . grade , self . age )) >>> student_objects = [ ... Student ( 'john' , 'A' , 15 ), ... Student ( 'jane' , 'B' , 12 ), ... Student...', 'B', 10), ('jane', 'B', 12), ('john', 'A', 15)] operator モジュールの関数は複数の段階でのソートを可能にします。例えば、 grade でソートしてさらに age でソートする場合: >>> sorted ( student_tuples , key = itemgetter ( 1 , 2 )) [('john', 'A', 15), ('d... - https://man.mtool.work/python/3.14/howto/sorting.html
- ソートのテクニック — Python 3.14.8 ドキュメント 13079
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » ソートのテクニック テーマ 自動 ライト ダーク | ソートのテクニック ¶ Author : Andrew Dalke and Raymond Hettinger Python のリストにはリストをインプレ
...med attributes) を使うことでオブジェクトに対しても動作します。例えば: >>> class Student : ... def __init__ ( self , name , grade , age ): ... self . name = name ... self . grade = grade ... self . age = age ... def __repr__ ( self ): ... return repr (...( self . name , self . grade , self . age )) >>> student_objects = [ ... Student ( 'john' , 'A' , 15 ), ... Student ( 'jane' , 'B' , 12 ), ... Student...', 'B', 10), ('jane', 'B', 12), ('john', 'A', 15)] operator モジュールの関数は複数の段階でのソートを可能にします。例えば、 grade でソートしてさらに age でソートする場合: >>> sorted ( student_tuples , key = itemgetter ( 1 , 2 )) [('john', 'A', 15), ('d... - https://man.mtool.work/python/3.14/howto/sorting.html
- bisect --- 配列二分法アルゴリズム — Python 3.14.8 ドキュメント 8586
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » bisect --- 配列二分法アルゴリズム テーマ 自動 ライト ダーク | bisect --- 配列二分法アルゴリズム ¶ ソースコード: Lib/bise
...り点の集合に基づいて、試験の成績の等級を表す文字を調べます。区切り点は 90 以上は 'A'、 80 から 89 は 'B'、などです: >>> def grade ( score ): ... i = bisect ([ 60 , 70 , 80 , 90 ], score ) ... return "FDCBA" [ i ] ... >>> [ grade ( score ) for score in... - https://man.mtool.work/python/3.14/library/bisect.html
- bisect --- 配列二分法アルゴリズム — Python 3.14.8 ドキュメント 8586
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » bisect --- 配列二分法アルゴリズム テーマ 自動 ライト ダーク | bisect --- 配列二分法アルゴリズム ¶ ソースコード: Lib/bise
...り点の集合に基づいて、試験の成績の等級を表す文字を調べます。区切り点は 90 以上は 'A'、 80 から 89 は 'B'、などです: >>> def grade ( score ): ... i = bisect ([ 60 , 70 , 80 , 90 ], score ) ... return "FDCBA" [ i ] ... >>> [ grade ( score ) for score in... - https://man.mtool.work/python/3.14/library/bisect.html
- 列挙型 HOWTO — Python 3.14.8 ドキュメント 8359
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 列挙型 HOWTO テーマ 自動 ライト ダーク | 列挙型 HOWTO ¶ Enum は、ユニークな値に束縛されたシンボル名の集合です。グローバル変数に似ていますが、 repr
...if self . __class__ is other . __class__ : ... return self . value < other . value ... return NotImplemented ... >>> class Grade ( OrderedEnum ): ... A = 5 ... B = 4 ... C = 3 ... D = 2 ... F = 1 ... >>> Grade . C < Grade . A True DuplicateFreeEnum ¶... - https://man.mtool.work/python/3.14/howto/enum.html
- 列挙型 HOWTO — Python 3.14.8 ドキュメント 8359
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 列挙型 HOWTO テーマ 自動 ライト ダーク | 列挙型 HOWTO ¶ Enum は、ユニークな値に束縛されたシンボル名の集合です。グローバル変数に似ていますが、 repr
...if self . __class__ is other . __class__ : ... return self . value < other . value ... return NotImplemented ... >>> class Grade ( OrderedEnum ): ... A = 5 ... B = 4 ... C = 3 ... D = 2 ... F = 1 ... >>> Grade . C < Grade . A True DuplicateFreeEnum ¶... - https://man.mtool.work/python/3.14/howto/enum.html
- statistics --- 数学的統計関数 — Python 3.14.8 ドキュメント 7906
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » statistics --- 数学的統計関数 テーマ 自動 ライト ダーク | statistics --- 数学的統計関数 ¶ Added in version 3
...tatisticsError . >>> fmean ([ 3.5 , 4.0 , 5.25 ]) 4.25 Optional weighting is supported. For example, a professor assigns a grade for a course by weighting quizzes at 20%, homework at 20%, a midterm exam at 30%, and a final exam at 30%: >>> grades = [...85 , 92 , 83 , 91 ] >>> weights = [ 0.20 , 0.20 , 0.30 , 0.30 ] >>> fmean ( grades , weights ) 87.6 If weights is supplied, it must be the same length as the data or a ValueError will be raised. Added in... - https://man.mtool.work/python/3.14/library/statistics.html
- What's new in Python 3.14 — Python 3.14.8 ドキュメント 7906
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's new in Python 3.14 テーマ 自動 ライト ダーク | What's new in Python 3.14 ¶ エディタ : Adam Turner と Hugo van Kemenade この記事では
...or set . (Contributed by CF Bolz-Tereick and Victor Stinner in gh-132828 .) >>> s = set () >>> s . add ({ 'pages' : 12 , 'grade' : 'A' }) Traceback (most recent call last): File "<python-input-1>" , line 1 , in <module> s . add ({ 'pages' : 12 , 'gra...Unicode or byte string starts or ends with particular strings. (Contributed by Serhiy Storchaka in gh-71339 .) urllib ¶ Upgrade HTTP digest authentication algorithm for urllib.request by supporting SHA-256 digest authentication as specified in RFC 76... - https://man.mtool.work/python/3.14/whatsnew/3.14.html
- statistics --- 数学的統計関数 — Python 3.14.8 ドキュメント 7906
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » statistics --- 数学的統計関数 テーマ 自動 ライト ダーク | statistics --- 数学的統計関数 ¶ Added in version 3
...tatisticsError . >>> fmean ([ 3.5 , 4.0 , 5.25 ]) 4.25 Optional weighting is supported. For example, a professor assigns a grade for a course by weighting quizzes at 20%, homework at 20%, a midterm exam at 30%, and a final exam at 30%: >>> grades = [...85 , 92 , 83 , 91 ] >>> weights = [ 0.20 , 0.20 , 0.30 , 0.30 ] >>> fmean ( grades , weights ) 87.6 If weights is supplied, it must be the same length as the data or a ValueError will be raised. Added in... - https://man.mtool.work/python/3.14/library/statistics.html
- What's new in Python 3.14 — Python 3.14.8 ドキュメント 7906
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's new in Python 3.14 テーマ 自動 ライト ダーク | What's new in Python 3.14 ¶ エディタ : Adam Turner と Hugo van Kemenade この記事では
...or set . (Contributed by CF Bolz-Tereick and Victor Stinner in gh-132828 .) >>> s = set () >>> s . add ({ 'pages' : 12 , 'grade' : 'A' }) Traceback (most recent call last): File "<python-input-1>" , line 1 , in <module> s . add ({ 'pages' : 12 , 'gra...Unicode or byte string starts or ends with particular strings. (Contributed by Serhiy Storchaka in gh-71339 .) urllib ¶ Upgrade HTTP digest authentication algorithm for urllib.request by supporting SHA-256 digest authentication as specified in RFC 76... - https://man.mtool.work/python/3.14/whatsnew/3.14.html