看板 Python 關於我們 聯絡資訊
如果想要 cd 的話 用 os.system 似乎行不通 因為 python 是開一個 child process 去 cd… 所以如果想要改變路徑的話 該怎麼下呢? 我試著用 os.chdir 也沒用… 那這 os.chdir 是作啥用的… -- Team Programming Dragon http://graphics.csie.ntu.edu.tw/~jonathan/tpd/ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 58.159.38.90
ckclark:os.chdir我的可以 用system的話 C也是開child process 08/31 13:31