1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > More than 4094 XFs (styles)

More than 4094 XFs (styles)

时间:2020-07-21 17:36:04

相关推荐

More than 4094 XFs (styles)

python报错:More than 4094 XFs (styles)

1.在用python xlwt写入excel的时候的时候,遇到了这个错误。

2.意思是xlwt最多只能有4094个样式,超出这个样式数量就报错了。

解决方法:

1.把样式放在for循坏之外。

file_style = xlwt.XFStyle()for i in 10000:table.write(self.table_index, index, data,file_style)

这个方法对于我没用。

2.wb = xlwt.Workbook(style_compression=2)

加上这个参数,就可以了

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。