NYC's Blog - Python中单双下划线的区别 的评论注:本文大部分内容参考自Difference between _, and __xx in Python.在学习Python的时候,很多人都不理解为什么在方法(method)前面会加好几个下划...2018-01-01T12:32:55+08:00Typechohttp://niyanchun.com/feed/atom/underlines-in-python.htmlhttp://niyanchun.com/underlines-in-python.html/comment-page-1#comment-4102018-01-01T12:32:55+08:002018-01-01T12:32:55+08:00友链博客http://emlog.club元旦快乐(^▽^)
]]>http://niyanchun.com/underlines-in-python.html/comment-page-1#comment-4012017-12-19T11:38:44+08:002017-12-19T11:38:44+08:00NYChttps://niyanchun.com/是,可能这就是这种弱类型、非编译型语言的特点吧。只关注业务逻辑,语言本身上尽量简单化,约束少一些
]]>http://niyanchun.com/underlines-in-python.html/comment-page-1#comment-4002017-12-19T11:34:32+08:002017-12-19T11:34:32+08:00大袋鼠https://muguang.me学到了学到,总之就是 Python 没有在语言层面限制一个方法或属性是否私有,下划线什么的是约定俗成的东西。
]]>