1
fatestigma Jan 4, 2017
恩。一开始我也这么觉得。但是习惯了也还好。
你可以看看几个讨论: 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 Jan 4, 2017 via Android
设计成函数方便传参数控制输出格式,也可以 from pprint import ppring as print 这样,总结起来就是增加灵活性减少暗坑
|
3
leavic Jan 4, 2017
等你要把 print 作为回调函数的时候你就知道这个改进有多好了
|
4
msg7086 Jan 5, 2017
你要简洁为什么还要用 Python ?
|
6
nicegoing Jan 5, 2017
IDE 不帮你干好了吗?自动补全。
|
7
littleshy Jan 5, 2017
感觉还是函数调用不需要括号爽。
|
10
ferstar Jan 5, 2017
习惯就好, 反正为了 Python3 可以无视 u"哈哈"这一条打死我都要上船
|