Python 3.6.5 ドキュメント 検索
Results of 61 - 70 of about 111 for self (0.100 sec.)
- 10. 標準ライブラリミニツアー — Python 3.6.5 ドキュメント 5764
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア
...
ctions ( unittest . TestCase ): def test_average ( self ): self . assertEqual ( average ([ 20 , 30 , 70 ])...
, 40.0 ) self . assertEqual ( round ( average ([ 1 , 5 , 7 ]), 1...
), 4.3 ) with self . assertRaises ( ZeroDivisionError ): average ([])...
with self . assertRaises ( TypeError ): average ( 20 , 30 ,...
- https://man.plustar.jp/python/tutorial/stdlib.html - [similar]
- 19.1.6. email.headerregistry: カスタムヘッダーオブジェクト — Python 3.6.5 ドキ... 5714
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
CII data will be RFC 2047 encoded. BaseHeader by itself cannot be used to create a header object. It defin...
l attributes beyond those provided by BaseHeader itself. Such an init method should look like this: def in...
it ( self , * args , ** kw ): self . _myattr = kw . pop ( 'm...
s, it is set to: email . utils . format_datetime ( self . datetime ) When creating a DateHeader , value ma...
- https://man.plustar.jp/python/library/email.headerregistry.html - [similar]
- What's New In Python 3.6 — Python 3.6.5 ドキュメント 5650
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho
...
in the owner class: class IntField : def __get__ ( self , instance , owner ): return instance . __dict__ [...
self . name ] def __set__ ( self , instance , value ):...
nt ): raise ValueError ( f 'expecting integer in { self . name } ' ) instance . __dict__ [ self . name ] =...
# this is the new initializer: def __set_name__ ( self , owner , name ): self . name = name class Model :...
- https://man.plustar.jp/python/whatsnew/3.6.html - [similar]
- 12.2. copyreg --- pickle サポート関数を登録する — Python 3.6.5 ドキュメント 5625
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
pickle >>> class C ( object ): ... def __init__ ( self , a ): ... self . a = a ... >>> def pickle_c ( c )...
- https://man.plustar.jp/python/library/copyreg.html - [similar]
- 21.27. xmlrpc.server --- 基本的なXML-RPCサーバー — Python 3.6.5 ドキュメント 5625
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
_dispatch() を呼び出します。 API は def _dispatch(self, method, params) ( params 可変引数リストではないこ...
this case, just 'mul'). class MyFuncs : def mul ( self , x , y ): return x * y server . register_instance...
port datetime class ExampleService : def getData ( self ): return '42' class currentTime : @staticmethod d...
以下はプログラム例です: class MyFuncs : def mul ( self , x , y ): return x * y handler = CGIXMLRPCRequest...
- https://man.plustar.jp/python/library/xmlrpc.server.html - [similar]
- 辞書オブジェクト (dictionary object) — Python 3.6.5 ドキュメント 5587
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ
...
value ; Py_ssize_t pos = 0 ; while ( PyDict_Next ( self -> dict , & pos , & key , & value )) { /* do somet...
value ; Py_ssize_t pos = 0 ; while ( PyDict_Next ( self -> dict , & pos , & key , & value )) { long i = Py...
if ( o == NULL ) return -1 ; if ( PyDict_SetItem ( self -> dict , key , o ) < 0 ) { Py_DECREF ( o ); retur...
- https://man.plustar.jp/python/c-api/dict.html - [similar]
- What's New In Python 3.3 — Python 3.6.5 ドキュメント 5587
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho
...
することが出来ます: >>> class D : ... def __init__ ( self , extra ): ... self . _extra_attributes = extra .....
. def __getattr__ ( self , attr ): ... try : ... return self . _extra_attri...
ルトで表示されます: >>> class C : ... def __init__ ( self , extra ): ... self . _extra_attributes = extra .....
. def __getattr__ ( self , attr ): ... try : ... return self . _extra_attri...
- https://man.plustar.jp/python/whatsnew/3.3.html - [similar]
- 拡張と埋め込み FAQ — Python 3.6.5 ドキュメント 5562
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python よくある質問
...
outCatcher ( io . TextIOBase ): ... def __init__ ( self ): ... self . data = [] ... def write ( self , stu...
ff ): ... self . data . append ( stuff ) ... >>> import sys >>> s...
- https://man.plustar.jp/python/faq/extending.html - [similar]
- 24.1. turtle --- タートルグラフィックス — Python 3.6.5 ドキュメント 5562
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
ています。メソッドでは、勿論、ここでは省略されている self が第一引数になります。 24.1.2. Turtle および Scree...
ます。 >>> class MyTurtle ( Turtle ): ... def glow ( self , x , y ): ... self . fillcolor ( "red" ) ... def...
unglow ( self , x , y ): ... self . fillcolor ( "" ) ... >>> tur...
) Help on method bgcolor in module turtle: bgcolor(self, *args) unbound turtle.Screen method Set or return...
- https://man.plustar.jp/python/library/turtle.html - [similar]
- What's New In Python 3.1 — Python 3.6.5 ドキュメント 5562
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho
...
, "requires Windows" ) def test_gizmo_on_windows ( self ): ... @unittest . expectedFailure def test_gimzo_...
without_required_library ( self ): ... また例外についてのテストが、 with 文で使える...
ャとして増強されました: def test_division_by_zero ( self ): with self . assertRaises ( ZeroDivisionError ):...
- https://man.plustar.jp/python/whatsnew/3.1.html - [similar]