Skip to content

7.3的小问题 #148

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

Closed
stephenson1811 opened this issue Jan 10, 2017 · 2 comments
Closed

7.3的小问题 #148

stephenson1811 opened this issue Jan 10, 2017 · 2 comments

Comments

@stephenson1811
Copy link

尽管注解的使用方法可能有很多种,但是它们的主要用途还是文档。 因为python并没有类型声明,通常来讲仅仅通过阅读源码很难知道应该传递什么样的参数给这个函数。 这时候使用注解就能给程序员更多的提示,让他们可以争取的使用函数。

应该是“正确”使用函数

@yidao620c
Copy link
Owner

yidao620c commented Mar 2, 2017 via email

@stephenson1811
Copy link
Author

不客气: - )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants