
1 fatestigma 2017-01-04 15:44:20 +08:00 恩。一开始我也这么觉得。但是习惯了也还好。 你可以看看几个讨论: https://www.reddit.com/r/Python/comments/45vok2/why_did_python_3_change_the_print_syntax/ https://news.ycombinator.com/item?id=10822804 官方基本在 3.0 的介绍里都会把「 Print Is A Function 」放第一个。 |
2 guyskk 2017-01-04 16:25:03 +08:00 via Android 设计成函数方便传参数控制输出格式,也可以 from pprint import ppring as print 这样,总结起来就是增加灵活性减少暗坑 |
3 leavic 2017-01-04 17:08:21 +08:00 等你要把 print 作为回调函数的时候你就知道这个改进有多好了 |
4 msg7086 2017-01-05 06:53:57 +08:00 你要简洁为什么还要用 Python ? |
6 nicegoing 2017-01-05 09:32:34 +08:00 IDE 不帮你干好了吗?自动补全。 |
7 littleshy 2017-01-05 09:52:39 +08:00 感觉还是函数调用不需要括号爽。 |
10 ferstar 2017-01-05 16:54:35 +08:00 习惯就好, 反正为了 Python3 可以无视 u"哈哈"这一条打死我都要上船 |