Results of 1 - 8 of about 8 for pear (0.004 sec.)
- 5. データ構造 — Python 3.14.8 ドキュメント 12164
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 5. データ構造 テーマ 自動 ライト ダーク | 5. データ構造 ¶ この章では、すでに学んだことについてより詳しく説明するとともに、いくつか新しいこ
...からの相対位置ではなく、リスト全体の先頭からの位置になります。 list. count ( value , / ) Return the number of times value appears in the list. list. sort ( * , key = None , reverse = False ) リストの項目を、インプレース演算 (in place、元のデータを演算...ピーを返します。 a[:] と同様です。 以下にリストのメソッドをほぼ全て使った例を示します: >>> fruits = [ 'orange' , 'apple' , 'pear' , 'banana' , 'kiwi' , 'apple' , 'banana' ] >>> fruits . count ( 'apple' ) 2 >>> fruits . count ( 'tangerine' ) 0 >>> frui...) # インデックス4から数えて次の banana の位置 6 >>> fruits . reverse () >>> fruits ['banana', 'apple', 'kiwi', 'banana', 'pear', 'apple', 'orange'] >>> fruits . append ( 'grape' ) >>> fruits ['banana', 'apple', 'kiwi', 'banana', 'pear', 'apple', 'or... - https://man.mtool.work/python/3.14/tutorial/datastructures.html
- 5. データ構造 — Python 3.14.8 ドキュメント 11802
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 5. データ構造 テーマ 自動 ライト ダーク | 5. データ構造 ¶ この章では、すでに学んだことについてより詳しく説明するとともに、いくつか新しいこ
...からの相対位置ではなく、リスト全体の先頭からの位置になります。 list. count ( value , / ) Return the number of times value appears in the list. list. sort ( * , key = None , reverse = False ) リストの項目を、インプレース演算 (in place、元のデータを演算...ピーを返します。 a[:] と同様です。 以下にリストのメソッドをほぼ全て使った例を示します: >>> fruits = [ 'orange' , 'apple' , 'pear' , 'banana' , 'kiwi' , 'apple' , 'banana' ] >>> fruits . count ( 'apple' ) 2 >>> fruits . count ( 'tangerine' ) 0 >>> frui...) # インデックス4から数えて次の banana の位置 6 >>> fruits . reverse () >>> fruits ['banana', 'apple', 'kiwi', 'banana', 'pear', 'apple', 'orange'] >>> fruits . append ( 'grape' ) >>> fruits ['banana', 'apple', 'kiwi', 'banana', 'pear', 'apple', 'or... - https://man.mtool.work/python/3.14/tutorial/datastructures.html
- What's New In Python 3.1 — Python 3.14.8 ドキュメント 8892
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.1 テーマ 自動 ライト ダーク | What's New In Python 3.1 ¶ 著者 : Raymond Hettinger This article explains the new fea
...み合わせて使うことで、ソートされた辞書を作れます: >>> # regular unsorted dictionary >>> d = { 'banana' : 3 , 'apple' : 4 , 'pear' : 1 , 'orange' : 2 } >>> # dictionary sorted by key >>> OrderedDict ( sorted ( d . items (), key = lambda t : t [ 0 ])) O...rderedDict([('apple', 4), ('banana', 3), ('orange', 2), ('pear', 1)]) >>> # dictionary sorted by value >>> OrderedDict ( sorted ( d . items (), key = lambda t : t [ 1 ])) OrderedDict([(...'pear', 1), ('orange', 2), ('banana', 3), ('apple', 4)]) >>> # dictionary sorted by length of the key string >>> OrderedDict ( s... - https://man.mtool.work/python/3.14/whatsnew/3.1.html
- What's New In Python 3.1 — Python 3.14.8 ドキュメント 8892
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.1 テーマ 自動 ライト ダーク | What's New In Python 3.1 ¶ 著者 : Raymond Hettinger This article explains the new fea
...み合わせて使うことで、ソートされた辞書を作れます: >>> # regular unsorted dictionary >>> d = { 'banana' : 3 , 'apple' : 4 , 'pear' : 1 , 'orange' : 2 } >>> # dictionary sorted by key >>> OrderedDict ( sorted ( d . items (), key = lambda t : t [ 0 ])) O...rderedDict([('apple', 4), ('banana', 3), ('orange', 2), ('pear', 1)]) >>> # dictionary sorted by value >>> OrderedDict ( sorted ( d . items (), key = lambda t : t [ 1 ])) OrderedDict([(...'pear', 1), ('orange', 2), ('banana', 3), ('apple', 4)]) >>> # dictionary sorted by length of the key string >>> OrderedDict ( s... - https://man.mtool.work/python/3.14/whatsnew/3.1.html
- operator --- 関数形式の標準演算子 — Python 3.14.8 ドキュメント 7988
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » operator --- 関数形式の標準演算子 テーマ 自動 ライト ダーク | operator --- 関数形式の標準演算子
...temgetter() を使って特定のフィールドをタプルレコードから取り出す例: >>> inventory = [( 'apple' , 3 ), ( 'banana' , 2 ), ( 'pear' , 5 ), ( 'orange' , 1 )] >>> getcount = itemgetter ( 1 ) >>> list ( map ( getcount , inventory )) [3, 2, 5, 1] >>> sorted...( inventory , key = getcount ) [('orange', 1), ('banana', 2), ('apple', 3), ('pear', 5)] operator. methodcaller ( name , / , * args , ** kwargs ) ¶ 引数の name メソッドを呼び出す呼び出し可能オブジェクトを返... - https://man.mtool.work/python/3.14/library/operator.html
- operator --- 関数形式の標準演算子 — Python 3.14.8 ドキュメント 7988
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » operator --- 関数形式の標準演算子 テーマ 自動 ライト ダーク | operator --- 関数形式の標準演算子
...temgetter() を使って特定のフィールドをタプルレコードから取り出す例: >>> inventory = [( 'apple' , 3 ), ( 'banana' , 2 ), ( 'pear' , 5 ), ( 'orange' , 1 )] >>> getcount = itemgetter ( 1 ) >>> list ( map ( getcount , inventory )) [3, 2, 5, 1] >>> sorted...( inventory , key = getcount ) [('orange', 1), ('banana', 2), ('apple', 3), ('pear', 5)] operator. methodcaller ( name , / , * args , ** kwargs ) ¶ 引数の name メソッドを呼び出す呼び出し可能オブジェクトを返... - https://man.mtool.work/python/3.14/library/operator.html
- 10. Brief tour of the standard library — Python 3.14.8 ドキュメント 7247
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 10. Brief tour of the standard library テーマ 自動 ライト ダーク | 10. Brief tour of the standard library ¶ 10.1. Operating system interf
...om モジュールは、乱数に基づいた要素選択のためのツールを提供しています: >>> import random >>> random . choice ([ 'apple' , 'pear' , 'banana' ]) 'apple' >>> random . sample ( range ( 100 ), 10 ) # 重複なしでサンプリング [30, 83, 16, 4, 8, 81, 41, 50, 1... - https://man.mtool.work/python/3.14/tutorial/stdlib.html
- 10. Brief tour of the standard library — Python 3.14.8 ドキュメント 7247
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 10. Brief tour of the standard library テーマ 自動 ライト ダーク | 10. Brief tour of the standard library ¶ 10.1. Operating system interf
...om モジュールは、乱数に基づいた要素選択のためのツールを提供しています: >>> import random >>> random . choice ([ 'apple' , 'pear' , 'banana' ]) 'apple' >>> random . sample ( range ( 100 ), 10 ) # 重複なしでサンプリング [30, 83, 16, 4, 8, 81, 41, 50, 1... - https://man.mtool.work/python/3.14/tutorial/stdlib.html
PREV
1
NEXT