Python2打印时可以不加括号:print 'hello world', Python3则需要加括号 print("hello world")另外看你的代码感觉前面有空格缩进,去了之后再运行看看,python对这个很严格