Python定义的基本函数
print "Hello, Python!";
问题在于 新版本修改了函数的使用方式
print ("Hello, Python!");
raw_input("\n\nPress the enter key to exit.")
提示:NameError: name 'raw_input' is not defined 原因,版本更新,这个函数被替换为input
input("\n\nPress the enter key to exit.")