Python:print打印时出现Missing parentheses in call to 'print'

原因:Python2.x和Python3.x使用print输出时规则不同导致

Python2.x: print k即可

Python3.x:print (k)需要加括号

猜你喜欢

转载自www.cnblogs.com/LesBlog/p/10912845.html
今日推荐