F:\study\Python>python hello_world.py hello world 文件名如果有空格会报错 F:\study>python f:\study\python\hello_world.py -> test.txt 输出到文件中去 在程序的末尾加入raw_input(),不会让窗口立即关闭raw_input('press enter to exit')