我有一個模擬設定,它生成一個csv包含模擬結果的。我想多次運行此腳本并csv's在每次模擬時獲得多個。我試過:
import os
sim_no = 1
for i in range(2):
os.system("python test_sim.py")
sim_no = sim_no 1
然后將 sim_no 變數匯入我的模擬腳本,但這會產生問題。
uj5u.com熱心網友回復:
匯入您的 test_sim 檔案而不是嘗試執行它
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/424569.html
標籤:Python python-3.x 多线程 CSV
下一篇:如何實作C 任務計劃程式
