Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 66 for Repr (0.052 sec.)
What's New In Python 3.2 — Python 3.6.5 ドキュメント 7363
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... -9666 .) 浮動小数点数または複素数に対する str() は repr() 表現と同じになりました。以前は str() 形式のほうが ... 現になっていましたがこれは単に困惑させるものでした。 repr() がデフォルトで可能ななかでの一番短い表現をするよ ... うとする必要性がなくなりました。 >>> import math >>> repr ( math . pi ) '3.141592653589793' >>> str ( math . ... ket' (Contributed by Antoine Pitrou in bpo-5506 .) reprlib ¶ カスタムコンテナの __repr__() メソッドを書く際 ...
https://man.plustar.jp/python/whatsnew/3.2.html - [similar]
What's New in Python 2.0 — Python 3.6.5 ドキュメント 7291
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... reamreader ( open ( '/tmp/output' , 'rb' ) ) print repr ( input . read ()) input . close () re モジュールで ... しい書式化スタイルが利用可能です; '%r' はその引数の repr() を挿入します。これは対称性の検討からも考えられま ... () してももはや末尾の 'L' 文字が付かないことです。 repr() では今でも付くのにも関わらずです。 'L' は長整数を ... 最後の桁を失ってしまいます。 浮動小数点数についての repr() が str() とは異なる精度でフォーマットするようにな ...
https://man.plustar.jp/python/whatsnew/2.0.html - [similar]
6.1. string --- 一般的な文字列操作 — Python 3.6.5 ドキュメント 7220
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... て変換します。デフォルトバージョンは 's' (str), 'r' (repr), 'a' (ascii) 変換タイプを理解します。 6.1.3. 書式 ... ポートされています: 値に対して str() を呼ぶ '!s' 、 repr() を呼ぶ '!r' 、 ascii() を呼ぶ '!a' 。 いくつかの ... ument first "Bring out the holy {name!r} " # Calls repr() on the argument first "More {!a} " # Calls ascii ... t ( coord ) 'X: 3; Y: 5' %s と %r の置き換え: >>> "repr() shows quotes: {!r} ; str() doesn't: {!s} " . for ...
https://man.plustar.jp/python/library/string.html - [similar]
26.5. unittest.mock --- モックオブジェクトライブラリ — Python 3.6.5 ドキュメン... 7220
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ame : もし、モックが name を持つ場合には、モックの repr として使われます。デバッグの際に役立つでしょう。こ ... mock_exit , other , thing ): ... assert 'other' in repr ( other ) ... assert 'thing' in repr ( thing ) ... ... assert 'exit' in repr ( mock_exit ) ... >>> test_function () patch.multi ... ther = DEFAULT ) as values : ... assert 'other' in repr ( values [ 'other' ]) ... assert 'thing' in repr ( ...
https://man.plustar.jp/python/library/unittest.mock.html - [similar]
26.7. 2to3 - Python 2 から 3 への自動コード変換 — Python 3.6.5 ドキュメント 7149
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... --add-suffix option was added. To translate an entire project from one directory tree to another use: $ 2t ... renames ¶ sys.maxint を sys.maxsize に変更します。 repr ¶ バッククォートを使った reprrepr() 関数に置き ...
https://man.plustar.jp/python/library/2to3.html - [similar]
15. 浮動小数点演算、その問題と制限 — Python 3.6.5 ドキュメント 7149
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア ... 同じ近似値を共有しているので、どの10進数の値も eval(repr(x)) == x という条件を満たしたまま同じように表示され ... ます。 昔の Python は、プロンプトと repr() ビルトイン関数は 17 桁の有効数字を持つ 0.1000000 ... '.2f' ) # give 2 digits after the point '3.14' >>> repr ( math . pi ) '3.141592653589793' これが、実際のコ ... 礎的な知識があるものとして話を進めます。 表現エラー( Representation error )は、いくつかの (実際にはほとんどの ...
https://man.plustar.jp/python/tutorial/floatingpoint.html - [similar]
16.16. ctypes --- Pythonのための外部関数ライブラリ — Python 3.6.5 ドキュメント 7077
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... stdin>" , line 1 , in <module> ValueError : Procedure probably called with not enough arguments (4 bytes m ... stdin>" , line 1 , in <module> ValueError : Procedure probably called with too many arguments (4 bytes in ... initialized to NUL bytes >>> print ( sizeof ( p ), repr ( p . raw )) 3 b'\x00\x00\x00' >>> p = create_stri ... a NUL terminated string >>> print ( sizeof ( p ), repr ( p . raw )) 6 b'Hello\x00' >>> print ( repr ( p . ...
https://man.plustar.jp/python/library/ctypes.html - [similar]
3. データモデル — Python 3.6.5 ドキュメント 7077
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ ... ime when the __del__() method is called. object. __repr__ ( self ) ¶ repr() 組み込み関数によって呼び出され ... は文字列オブジェクトでなければなりません。クラスが __repr__() を定義していて __str__() は定義していなければ、 ... 公式の (informal)」文字列表現が要求されたときにも __repr__() が使われます。 この関数はデバッグの際によく用い ... とが期待されないという点で、このメソッドは object.__repr__() とは異なります: より便利な、または簡潔な表現を ...
https://man.plustar.jp/python/reference/datamodel.html - [similar]
11. 標準ライブラリミニツアー --- その 2 — Python 3.6.5 ドキュメント 7077
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア ... ではほとんど使いません。 11.1. 出力のフォーマット ¶ reprlib モジュールは、大きなコンテナや、深くネストしたコ ... ンテナを省略して表示するバージョンの repr() を提供しています: >>> import reprlib >>> reprlib ... . repr ( set ( 'supercalifragilisticexpialidocious' )) "{ ... self , value ): ... self . value = value ... def __repr__ ( self ): ... return str ( self . value ) ... >> ...
https://man.plustar.jp/python/tutorial/stdlib2.html - [similar]
What's New In Python 3.0 — Python 3.6.5 ドキュメント 7077
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... le = sys . stderr ) Old : print ( x , y ) # prints repr((x, y)) New : print (( x , y )) # Not the same as ... リリースの sys.maxint と普通は同じです。 long 整数の repr() はもはや末尾に L を持ちません。そのため、無条件に ... おそらく最善のアプローチです。 PEP 3138 : 文字列への repr() はもう非 ASCII 文字をエスケープしません。ただし、 ... ください。 バッククオートが削除されました (代わりに repr() を使用してください)。 <> が削除されました (代わり ...
https://man.plustar.jp/python/whatsnew/3.0.html - [similar]
PREV 1 2 3 4 5 6 7 NEXT