标签: python openpyxl
我刚刚将openpyxl升级到版本2.4.0,此代码在以前的版本中运行良好,不再适用了:
openpyxl
2.4.0
style = openpyxl.styles.Style(**style_kwargs)
Openpyxl表示它没有Style属性:
Style
AttributeError: 'module' object has no attribute 'Style'
它现在如何运作?
答案 0 :(得分:2)
Style类在几个版本之前已被弃用,并已被删除。