程序運行完畢,窗口也跟着關閉。也就是說還沒來得及看結果,程序窗口就關閉了。spa
試着改改代碼,在最後加上如下這行代碼:code
raw_input("Press <enter>")
這樣,在運行程序以後,將會出現如下內容的DOS窗口。blog
What is your name? Gumby Hello, Gumby! Press <enter>