TypeError: __init__() got an unexpected keyword argument 'optimized_write'
TypeError: __init__() got an unexpected keyword argument 'optimized_write'
我得到一个
TypeError: __init__() got an unexpected keyword argument 'optimized_write'
使用以下代码时出错:
from openpyxl import Workbook
wb = Workbook(optimized_write=True)
我没能在其他地方找到类似的问题。这可能与我不能用 openpyxl 也写大 Excel 文件有关?
Workbook
class 构造函数甚至没有参数optimized_write
,它只接受一个参数write_only
。可以看看source code,了解更多
Workbook(write_only = True)
这应该有效
我得到一个
TypeError: __init__() got an unexpected keyword argument 'optimized_write'
使用以下代码时出错:
from openpyxl import Workbook
wb = Workbook(optimized_write=True)
我没能在其他地方找到类似的问题。这可能与我不能用 openpyxl 也写大 Excel 文件有关?
Workbook
class 构造函数甚至没有参数optimized_write
,它只接受一个参数write_only
。可以看看source code,了解更多
Workbook(write_only = True)
这应该有效