标签:redirect let back comment com 来源 .com ring round
原因:
Yes, you should assign all attributes of your object in the
__init__
method.The most important reason to do this is tool support. Many Python IDEs can see the assignments in the
__init__
and use those attributes for type-based autocompletion. Sphinx-doc can list those attributes in your reference documentation.
来源:
两个讨论:
例子:
Tesorflow project in Githup
Python里面所有instance应该现在__init__里面预定义
标签:redirect let back comment com 来源 .com ring round
原文地址:http://www.cnblogs.com/easonbolg/p/7898330.html