以下程式示範利用os.name 判斷作業系統種類,然後用相對應的系統指令清除終端機畫面 import os if os.name == "posix": os.system("clear") elif os.name == "nt": ...
確定! 回上一頁