We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
函数自然是“可被调用”的对象。但除了函数外,我们也可以让任何一个类(class)变得“可被调用”(callable)。办法很简单,只要自定义类的 call 魔法方法即可。
类一直是可被调用的“callable”,这里是不是写错了,应该是object吧
The text was updated successfully, but these errors were encountered:
感谢指出,原文措辞确实有些小问题。我觉得应该改成“类实例”比较好一些。
Sorry, something went wrong.
^_^
Fixed
No branches or pull requests
类一直是可被调用的“callable”,这里是不是写错了,应该是object吧
The text was updated successfully, but these errors were encountered: