在脚本开头,输入:import os,在脚本结尾,输入:os.system("pause")

# hello.py

import os

name=raw_input("please enter your name:")

print "hello,",name

os.system("pause")