print 用法不同:在 Python2 中,print 用法为 print "Hello World"在 Python3 中,print 用法为 print("Hello World")raw_input() 与 input():在 Python2 中,raw_input() 用于获取字符串类型的标准输入,input() 用于获取数值类型的标准输入在 Python3 中,只有 input() 函数而没有 raw_input() 函数,input() 获取的标准输入都当做字符串处理