csv.writer在Autodesk CSV中

2024-06-14 18:47:20 发布

您现在位置:Python中文网/ 问答频道 /正文

29 csvfile=desfile+"\spv1.csv" 
30 csv_writer = csv.writer(csvfile)

我在Python中使用AutodDesk CFD,这是我试图将结果写入csv文件的部分。获取文件路径时出错

文件“C:/Users/Carlos/Documents/Inventor/Prototype Velocity Profile/Extracting Summary Stats for Expanding模型.py“,第30行,英寸

^{pr2}$

TypeError:参数1必须具有“write”方法

我已经尝试在writer中插入分隔符选项,但仍然不起作用。有什么建议吗?在


Tags: 文件csvcsvfile路径usersdocumentswriterprototype