摘要: 1.编码 py2采用的是ascll编码 py3采用unicode编码 2.print py2中print是一个关键字 py3中print是一个函数,含有括号 3.input py2中raw_input(),这个函数返回一个字符串,但不会对输入的字符串进行计算(比如将它转化成int或者float) input()函数会对输入进行计算(可能的话会将它转化成数字) py3中统一成了input(... 阅读全文
posted @ 2018-03-26 21:43 -Learning- 阅读(720) 评论(0) 推荐(0)