print

在python 2.7里 print是表达式,使用双引号打印字符串。

print “Hello,world”

 

而在python 3.4里 print是函数,使用括号打印字符串。

print("Hello,world")

 

posted @ 2016-10-09 16:20  stephen2016  阅读(180)  评论(0)    收藏  举报