Python2和3的主要区别
摘要:
一、print 在 python2 中 print 是一条语句,而在 python3 中 print 作为函数存在。 这样看好像没有什么区别,python2 好像也可以把 print 当做函数使用,但是仅仅是表象而已,前者是把 ("hello")当作一个整体,而后者 print()是个函数,接收字符 阅读全文
posted @ 2017-11-22 17:22 EricHowe 阅读(292) 评论(0) 推荐(0)
浙公网安备 33010602011771号