解决错误:AttributeError: module ‘xlwt‘ has no attribute ‘Workbook‘

使用python创建表格的时候,遇到以下错误:

Traceback (most recent call last):
  File "F:/python自动化/1.py", line 3, in <module>
    new_worbook = xlwt.Workbook()
AttributeError: module 'xlwt' has no attribute 'Workbook'

解决办法:

避免文件名和库名一样

猜你喜欢

转载自blog.csdn.net/adminkeys/article/details/107867120