openpyxl.styles在v2.4.0中不再具有样式吗? [英] Does not openpyxl.styles have a Style anymore in v2.4.0?
本文介绍了openpyxl.styles在v2.4.0中不再具有样式吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚将openpyxl
升级到了2.4.0
版本,此代码在以前的版本中可以正常工作,不再起作用:
I just upgraded openpyxl
to version 2.4.0
and this code that worked fine in previous versions, doesn't work anymore:
style = openpyxl.styles.Style(**style_kwargs)
Openpyxl说它没有Style
属性:
Openpyxl says that it doesn't have a Style
attribute:
AttributeError: 'module' object has no attribute 'Style'
现在如何工作?
推荐答案
Style
类在多个版本之前已被弃用,并已被删除.
The Style
class was deprecated several versions ago and has been removed.
这篇关于openpyxl.styles在v2.4.0中不再具有样式吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文