来自
import cobra.test
model = cobra.test.create_test_model()
更改为
import cobra.io
model = cobra.io.load_model(\"iYS1720\")
来自
data_dir = cobra.test.data_dir
更改为
data_dir = 'C:\Users\yahan\Anaconda3\Lib\site-packages\cobra\test\data' # your path