我正在使用abaqus,我想从excel文件中读取值,比如(x,y,z),我想得到它的输出,在excel文件中。请告诉我,我一直在尝试,但我没有太多。在
enter code here
# -*- coding: mbcs -*-
from part import *
from material import *
from section import *
from assembly import *
from step import *
from interaction import *
from load import *
from mesh import *
from optimization import *
from job import *
from sketch import *
from visualization import *
from connectorBehavior import *
from xlrd import *
file_location=('C:\Users\Lenovo\Desktop/calling.xlsx')
workbook=xlrd.open_workbook(file_location)
sheet=workbook.sheet_by_index(0)
for col in range(sheet.ncols)
sheet.cell_value(nrow,col)
当我运行这个脚本时,一个错误弹出无效文件。在
我建议您使用xlwings,下面是如何与excel文件交互:
相关问题 更多 >
编程相关推荐