Python 的 system(“pause”) Posted on 2009 年 9 月 10 日2021 年 6 月 29 日 By 日落 在〈Python 的 system(“pause”)〉中有 5 則留言 2021-06-29 更新:請勿使用下列語法,敬請改用 Python interactive shell。 windows 的命令提示字元執行完會自動關閉,只好什麼語言都來個 system(“pause”)。 import os # blablabla ..... os.system("pause") Tags:Python, 程式設計
You knew that? Oh ho ho I don't think so. stubbornly stick to your funny thought won't let you grow 回覆
你可以用raw_input()
變成結束要按enter,它是buildin-function,不用另外import os
I knew that, just want to use "pause" command. Thanks anyway
You knew that? Oh ho ho I don't think so.
stubbornly stick to your funny thought won't let you grow
I knew that too, a kind of bad programming style
謝了