Does not openpyxl.styles have a Style anymore in v2.4.0?

半腔热情 提交于 2019-12-25 09:14:43

问题


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 says that it doesn't have a Style attribute:

AttributeError: 'module' object has no attribute 'Style'

How does it work now?


回答1:


The Style class was deprecated several versions ago and has been removed.



来源:https://stackoverflow.com/questions/39677426/does-not-openpyxl-styles-have-a-style-anymore-in-v2-4-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!