Python 3.6.5 ドキュメント 検索
Results of 21 - 30 of about 66 for Repr (0.054 sec.)
- 2. 組み込み関数 — Python 3.6.5 ドキュメント 7006
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
() range() vars() classmethod() getattr() locals() repr() zip() compile() globals() map() reversed() __imp...
ment : return True return False ascii ( object ) ¶ repr() と同様、オブジェクトの印字可能な表現を含む文字列...
を返しますが、 repr() によって返された文字列中の非 ASCII 文字は \x 、...
ケープを使ってエスケープされます。これは Python 2 の repr() によって返されるのと同じ文字列を作ります。 bin (...
- https://man.plustar.jp/python/library/functions.html - [similar]
- What's New In Python 3.1 — Python 3.6.5 ドキュメント 7006
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho
...
以前は Python は単純なアプローチを使っていました。値 repr(1.1) は format(1.1, '.17g') として計算され、 '1.10...
使うことが好都合だったのは、IEEE-754 のもとでは eval(repr(1.1)) がその元の値に正確に戻ることに依存出来たこと...
していると理解していました。 新しいアルゴリズムでは repr(1.1) はより賢明で '1.1' を返します。実際的には、こ...
- https://man.plustar.jp/python/whatsnew/3.1.html - [similar]
- 型オブジェクト — Python 3.6.5 ドキュメント 6949
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ
...
getattrofunc, setattrfunc, setattrofunc, cmpfunc, reprfunc, hashfunc PyTypeObject の構造体定義は Include/...
tp_compare (Python 2) or tp_reserved (Python 3) */ reprfunc tp_repr ; /* Method suites for standard classe...
ility) */ hashfunc tp_hash ; ternaryfunc tp_call ; reprfunc tp_str ; getattrofunc tp_getattro ; setattrofu...
tp_compare や tp_reserved として知られていました。 reprfunc PyTypeObject.tp_repr ¶ オプションのポインタで、...
- https://man.plustar.jp/python/c-api/typeobj.html - [similar]
- 6.4. textwrap --- テキストの折り返しと詰め込み — Python 3.6.5 ドキュメント 6949
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
the empty line! s = ''' \ hello world ''' print ( repr ( s )) # prints ' hello\n world\n ' print ( repr (...
- https://man.plustar.jp/python/library/textwrap.html - [similar]
- 8.9. types --- 動的な型生成と組み込み型に対する名前 — Python 3.6.5 ドキュメント 6949
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
space ¶ 名前空間への属性アクセスに加えて意味のある repr を提供するための、単純な object サブクラスです。 o...
wargs ): self . __dict__ . update ( kwargs ) def __repr__ ( self ): keys = sorted ( self . __dict__ ) item...
- https://man.plustar.jp/python/library/types.html - [similar]
- ソート HOW TO — Python 3.6.5 ドキュメント 6878
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » ソー
...
elf . grade = grade ... self . age = age ... def __repr__ ( self ): ... return repr (( self . name , self...
- https://man.plustar.jp/python/howto/sorting.html - [similar]
- 4. 組み込み型 — Python 3.6.5 ドキュメント 6878
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
全てのオブジェクトは、比較でき、真理値を判定でき、 ( repr() 関数や、わずかに異なる str() 関数によって) 文字列...
def bit_length ( self ): s = bin ( self ) # binary representation: bin(-37) --> '-0b100101' s = s . lstrip...
_str__() メソッドを持たない場合、 str() は代わりに repr(object) の結果を返します。 encoding か errors の少...
のです。(なお、この文脈での印字可能文字は、文字列に repr() が呼び出されるときにエスケープすべきでない文字の...
- https://man.plustar.jp/python/library/stdtypes.html - [similar]
- 26.1. typing --- 型ヒントのサポート — Python 3.6.5 ドキュメント 6878
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
( self , new : T ) -> None : self . log ( 'Set ' + repr ( self . value )) self . value = new def get ( sel...
f ) -> T : self . log ( 'Get ' + repr ( self . value )) return self . value def log ( se...
ソッドも持てます: class Employee ( NamedTuple ): """Represents an employee.""" name : str id : int = 3 def...
__repr__ ( self ) -> str : return f '<Employee { self . n...
- https://man.plustar.jp/python/library/typing.html - [similar]
- ファイルオブジェクト — Python 3.6.5 ドキュメント 6806
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ
...
W だけです; このフラグを指定すると、オブジェクトに repr() ではなく str() を適用した結果をファイルに書き出し...
- https://man.plustar.jp/python/c-api/file.html - [similar]
- Unicode HOWTO — Python 3.6.5 ドキュメント 6806
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Unic
...
55\u0e57 57 flavours" m = p . search ( s ) print ( repr ( m . group ())) 実行すると、 \d+ はタイ語の数字と...
ncoding = 'utf-8' ) as f : for line in f : print ( repr ( line )) 読み書きの両方ができる update モードでフ...
u4500 blah blah blah \n ' ) f . seek ( 0 ) print ( repr ( f . readline ()[: 1 ])) Unicode 文字 U+FEFF は b...
jamin Peterson that discusses the internal Unicode representation in Python 3.3. 謝辞 ¶ このドキュメントの...
- https://man.plustar.jp/python/howto/unicode.html - [similar]