2020
09-27
09-27
Python读取excel文件中带公式的值的实现
在进行excel文件读取的时候,我自己设置了部分直接从公式获取单元格的值但是用之前的读取方法进行读取的时候,返回值为空importosimportxlrdfromxlutils.copyimportcopyfile_path=os.path.abspath(os.path.dirname(__file__))#获取当前文件目录print(file_path)root_path=os.path.dirname(file_path)#获取文件上级目录data_path=root_path+'\\data'#拼接data文件夹地址data_file=data_path+'\\api.xlsx'...
继续阅读 >