Skip to content

Update p05_define_functions_with_default_arguments.rst #100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/c07/p05_define_functions_with_default_arguments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,5 @@

这里对 ``object()`` 的使用看上去有点不太常见。``object`` 是python中所有类的基类。
你可以创建 ``object`` 类的实例,但是这些实例没什么实际用处,因为它并没有任何有用的方法,
也没有哦任何实例数据(因为它没有任何的实例字典,你甚至都不能设置任何属性值)。
也没有任何实例数据(因为它没有任何的实例字典,你甚至都不能设置任何属性值)。
你唯一能做的就是测试同一性。这个刚好符合我的要求,因为我在函数中就只是需要一个同一性的测试而已。