InputMyNametest.py代码内容
name = input("Please Input your name: ")
print("Hello,"+ name + "!")
input("Please input <enter>")
Windows中DOS窗口运行Python的可执行文件InputMyNametest.py :
实例:

InputMyNametest.py代码内容
name = input("Please Input your name: ")
print("Hello,"+ name + "!")
input("Please input <enter>")
Windows中DOS窗口运行Python的可执行文件InputMyNametest.py :
实例: