使用python3.9 创建Excel表格时,出现错误。
Traceback (most recent call last):
File "C:\pycharm_project_files\pythonProject\py_excel.py", line 5, in <module>
workbook = xlsxwriter.workbook('demo.xlsx')
TypeError: 'module' object is not callable
Process finished with exit code 1
这个workbook模块没有。
最后,我把workbook改成Workbook 后 成功运行。