python随笔

今天学习python,出现很多错误,是版本升级导致该函数不能使用,问题列表:
1、print “hello world!” 2.5版本可以,3.0以上要加(),就是print("hello,world")
2、raw_input("press enter key to close this window");出现name 'raw_input' is not defined错误,原因是版本3.0 中去掉了raw_input 函数,改用input。
3、 python3.3教程:http://blog.sina.com.cn/s/blog_905ed10101018vkl.html

posted @ 2019-03-06 10:35  夏沫小白  阅读(123)  评论(0)    收藏  举报