Results of 1 - 10 of about 64 for eggs (0.005 sec.)
- pprint --- データの整形表示 — Python 3.14.8 ドキュメント 12118
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » pprint --- データの整形表示 テーマ 自動 ライト ダーク | pprint --- データの整形表示 ¶ ソースコード: Lib/pprint.py The pp
...りされて表示されます。そうでなければアンダースコアは表示されません(デフォルト)。 >>> import pprint >>> stuff = [ 'spam' , 'eggs' , 'lumberjack' , 'knights' , 'ni' ] >>> stuff . insert ( 0 , stuff ) >>> pprint . pp ( stuff ) [<Recursion on list with i...d=...>, 'spam', 'eggs', 'lumberjack', 'knights', 'ni'] Added in version 3.8. pprint. pprint ( object , stream = None , indent = 1 , width = 80 ,...The representation is not otherwise formatted. >>> pprint . saferepr ( stuff ) "[<Recursion on list with id=...>, 'spam', 'eggs', 'lumberjack', 'knights', 'ni']" PrettyPrinter オブジェクト ¶ class pprint. PrettyPrinter ( indent = 1 , width = 80 , dep... - https://man.mtool.work/python/3.14/library/pprint.html
- pprint --- データの整形表示 — Python 3.14.8 ドキュメント 12118
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » pprint --- データの整形表示 テーマ 自動 ライト ダーク | pprint --- データの整形表示 ¶ ソースコード: Lib/pprint.py The pp
...りされて表示されます。そうでなければアンダースコアは表示されません(デフォルト)。 >>> import pprint >>> stuff = [ 'spam' , 'eggs' , 'lumberjack' , 'knights' , 'ni' ] >>> stuff . insert ( 0 , stuff ) >>> pprint . pp ( stuff ) [<Recursion on list with i...d=...>, 'spam', 'eggs', 'lumberjack', 'knights', 'ni'] Added in version 3.8. pprint. pprint ( object , stream = None , indent = 1 , width = 80 ,...The representation is not otherwise formatted. >>> pprint . saferepr ( stuff ) "[<Recursion on list with id=...>, 'spam', 'eggs', 'lumberjack', 'knights', 'ni']" PrettyPrinter オブジェクト ¶ class pprint. PrettyPrinter ( indent = 1 , width = 80 , dep... - https://man.mtool.work/python/3.14/library/pprint.html
- The Python 2.3 Method Resolution Order — Python 3.14.8 ドキュメント 9893
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » The Python 2.3 Method Resolution Order テーマ 自動 ライト ダーク | The Python 2.3 Method Resolution Order ¶ 注釈 This is a historical document, pr
...recedence ordering. Consider the following example: >>> F = type ( 'Food' ,(),{ 'remember2buy' : 'spam' }) >>> E = type ( 'Eggs' ,( F ,),{ 'remember2buy' : 'eggs' }) >>> G = type ( 'GoodFood' ,( F , E ),{}) # under Python 2.3 this is an error! with i...nheritance diagram O | (buy spam) F | \ | E (buy eggs) | / G (buy eggs or spam ?) We see that class G inherits from F and E, with F before E: therefore we would expect the attr...mber2buy to be inherited by F.remember2buy and not by E.remember2buy : nevertheless Python 2.2 gives >>> G . remember2buy 'eggs' This is a breaking of local precedence ordering since the order in the local precedence list, i.e. the list of the parent... - https://man.mtool.work/python/3.14/howto/mro.html
- The Python 2.3 Method Resolution Order — Python 3.14.8 ドキュメント 9893
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » The Python 2.3 Method Resolution Order テーマ 自動 ライト ダーク | The Python 2.3 Method Resolution Order ¶ 注釈 This is a historical document, pr
...recedence ordering. Consider the following example: >>> F = type ( 'Food' ,(),{ 'remember2buy' : 'spam' }) >>> E = type ( 'Eggs' ,( F ,),{ 'remember2buy' : 'eggs' }) >>> G = type ( 'GoodFood' ,( F , E ),{}) # under Python 2.3 this is an error! with i...nheritance diagram O | (buy spam) F | \ | E (buy eggs) | / G (buy eggs or spam ?) We see that class G inherits from F and E, with F before E: therefore we would expect the attr...mber2buy to be inherited by F.remember2buy and not by E.remember2buy : nevertheless Python 2.2 gives >>> G . remember2buy 'eggs' This is a breaking of local precedence ordering since the order in the local precedence list, i.e. the list of the parent... - https://man.mtool.work/python/3.14/howto/mro.html
- reprlib --- もう一つの repr() の実装 — Python 3.14.8 ドキュメント 9577
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » reprlib --- もう一つの repr() の実装 テーマ 自動 ライト ダーク | reprlib --- もう一つの repr() の実装 ¶ ソースコード: Li
...ne breaks or indentation, like the standard repr() . For example: >>> example = [ ... 1 , 'spam' , { 'a' : 2 , 'b' : 'spam eggs' , 'c' : { 3 : 4.5 , 6 : []}}, 'ham' ] >>> import reprlib >>> aRepr = reprlib . Repr () >>> print ( aRepr . repr ( example...)) [1, 'spam', {'a': 2, 'b': 'spam eggs', 'c': {3: 4.5, 6: []}}, 'ham'] If indent is set to a string, each recursion level is placed on its own line, indented by...g: >>> aRepr . indent = '-->' >>> print ( aRepr . repr ( example )) [ -->1, -->'spam', -->{ -->-->'a': 2, -->-->'b': 'spam eggs', -->-->'c': { -->-->-->3: 4.5, -->-->-->6: [], -->-->}, -->}, -->'ham', ] Setting indent to a positive integer value beha... - https://man.mtool.work/python/3.14/library/reprlib.html
- unittest.mock --- 入門 — Python 3.14.8 ドキュメント 9261
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- 入門 テーマ 自動 ライト ダーク | unittest.mock --- 入門 ¶ Added in version 3.3. Mock を使う ¶ Mock p
...ndProvider () ... def method ( self ): ... response = self . backend . get_endpoint ( 'foobar' ) . create_call ( 'spam' , 'eggs' ) . start_call () ... # more code BackendProvider はすでに十分テストされているとします。 method() をどうテストしましょうか...とで、この呼び出しのリストを作成することができます: >>> chained = call . get_endpoint ( 'foobar' ) . create_call ( 'spam' , 'eggs' ) . start_call () >>> call_list = chained . call_list () >>> assert mock_backend . mock_calls == call_list 部分的なモック...の素晴らしいAPIがあります。 >>> mock = Mock () >>> mock . foo_bar . return_value = None >>> mock . foo_bar ( 'baz' , spam = 'eggs' ) >>> mock . foo_bar . assert_called_with ( 'baz' , spam = 'eggs' ) If your mock is only being called once you can use th... - https://man.mtool.work/python/3.14/library/unittest.mock-examples.html
- unittest.mock --- 入門 — Python 3.14.8 ドキュメント 9261
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- 入門 テーマ 自動 ライト ダーク | unittest.mock --- 入門 ¶ Added in version 3.3. Mock を使う ¶ Mock p
...ndProvider () ... def method ( self ): ... response = self . backend . get_endpoint ( 'foobar' ) . create_call ( 'spam' , 'eggs' ) . start_call () ... # more code BackendProvider はすでに十分テストされているとします。 method() をどうテストしましょうか...とで、この呼び出しのリストを作成することができます: >>> chained = call . get_endpoint ( 'foobar' ) . create_call ( 'spam' , 'eggs' ) . start_call () >>> call_list = chained . call_list () >>> assert mock_backend . mock_calls == call_list 部分的なモック...の素晴らしいAPIがあります。 >>> mock = Mock () >>> mock . foo_bar . return_value = None >>> mock . foo_bar ( 'baz' , spam = 'eggs' ) >>> mock . foo_bar . assert_called_with ( 'baz' , spam = 'eggs' ) If your mock is only being called once you can use th... - https://man.mtool.work/python/3.14/library/unittest.mock-examples.html
- reprlib --- もう一つの repr() の実装 — Python 3.14.8 ドキュメント 8787
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » reprlib --- もう一つの repr() の実装 テーマ 自動 ライト ダーク | reprlib --- もう一つの repr() の実装 ¶ ソースコード: Li
...ne breaks or indentation, like the standard repr() . For example: >>> example = [ ... 1 , 'spam' , { 'a' : 2 , 'b' : 'spam eggs' , 'c' : { 3 : 4.5 , 6 : []}}, 'ham' ] >>> import reprlib >>> aRepr = reprlib . Repr () >>> print ( aRepr . repr ( example...)) [1, 'spam', {'a': 2, 'b': 'spam eggs', 'c': {3: 4.5, 6: []}}, 'ham'] If indent is set to a string, each recursion level is placed on its own line, indented by...g: >>> aRepr . indent = '-->' >>> print ( aRepr . repr ( example )) [ -->1, -->'spam', -->{ -->-->'a': 2, -->-->'b': 'spam eggs', -->-->'c': { -->-->-->3: 4.5, -->-->-->6: [], -->-->}, -->}, -->'ham', ] Setting indent to a positive integer value beha... - https://man.mtool.work/python/3.14/library/reprlib.html
- 7. Input and Output — Python 3.14.8 ドキュメント 8629
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 7. Input and Output テーマ 自動 ライト ダーク | 7. Input and Output ¶ プログラムの出力方法にはいくつかの種類があります。 データを人間が読
...> print ( hellos ) 'hello, world\n' >>> # repr() の引数はどんな Python オブジェクトでも可: >>> repr (( x , y , ( 'spam' , 'eggs' ))) "(32.5, 40000, ('spam', 'eggs'))" The string module contains support for a simple templating approach based upon regu...字は str.format() メソッドに渡されたオブジェクトの位置を表すのに使えます。 >>> print ( ' {0} and {1} ' . format ( 'spam' , 'eggs' )) spam and eggs >>> print ( ' {1} and {0} ' . format ( 'spam' , 'eggs' )) eggs and spam str.format() メソッドにキーワード...int format str フォーマット repr メソッド table Sjoerd Jack Dcab 場合 spam mode 方法 オブジェクト 変数 encoding votes 表現 eggs 目次 7. Input and Output 7.1. Fancier Output Formatting 7.1.1. Formatted String Literals 7.1.2. The String format() Method... - https://man.mtool.work/python/3.14/tutorial/inputoutput.html
- 7. Input and Output — Python 3.14.8 ドキュメント 8629
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 7. Input and Output テーマ 自動 ライト ダーク | 7. Input and Output ¶ プログラムの出力方法にはいくつかの種類があります。 データを人間が読
...> print ( hellos ) 'hello, world\n' >>> # repr() の引数はどんな Python オブジェクトでも可: >>> repr (( x , y , ( 'spam' , 'eggs' ))) "(32.5, 40000, ('spam', 'eggs'))" The string module contains support for a simple templating approach based upon regu...字は str.format() メソッドに渡されたオブジェクトの位置を表すのに使えます。 >>> print ( ' {0} and {1} ' . format ( 'spam' , 'eggs' )) spam and eggs >>> print ( ' {1} and {0} ' . format ( 'spam' , 'eggs' )) eggs and spam str.format() メソッドにキーワード...てしまいます。 関連キーワード print format フォーマット repr table Sjoerd Jack Dcab spam mode 方法 変数 encoding votes 表現 eggs 辞書 world キーワード 操作 カラム hello values math ホバークラフト 目次 7. Input and Output 7.1. Fancier Output Formatting... - https://man.mtool.work/python/3.14/tutorial/inputoutput.html