Python 入门篇-python3和python2的差异总结
输出上的差异
Python3的print的内容是用括号括起来的。
print("hello world!")
Python2的print和内容用空格隔开。
print "hello world!"
待完善...
各位好,我是csdn的小蓝枣,现在我的博客已经同步到博客园啦,欢迎大家关注哈!也欢迎大家关注我的公众号Py_JSQY!每天会更新有趣的科技文!哈哈!
输出上的差异
Python3的print的内容是用括号括起来的。
print("hello world!")
Python2的print和内容用空格隔开。
print "hello world!"
待完善...