我是一個初學者,我試圖使用python編程模擬系統動態模型。問題是當我試圖打印sd模型的組件時,錯誤消息出來像這樣:AttributeError:'模塊'對象沒有屬性'doc
"AttributeError: 'module' object has no attribute 'doc'"
我的代碼:
import pysd
educationmodel = pysd.read_vensim('Education.mdl')
print educationmodel.components.doc()
我運行代碼,但它仍然出現錯誤:「AttributeError:'PySD'對象沒有'doc'屬性,但我嘗試更改代碼:print educationmodel.components,輸出結果如這個:runfile('C:/Users/STUDENT/.spyder2/education-sd.py',wdir ='C:/Users/STUDENT/.spyder2') 重載模塊:147073311549。你能否向我解釋一下..tqqq –
nurul