2022年6月21日

python设置excel文本格式为数字不生效解决

摘要: 问题描述: 设置excel单元格百分比格式为数字老是不生效 sheet.cell(row=1, column=5).number_format = '0.00%' 修改代码给该单元格赋值的语句 原代码: sheet.cell(row=1, column=5).value = '{:.2%}'.for 阅读全文

posted @ 2022-06-21 13:40 阿虾 阅读(360) 评论(0) 推荐(0) 编辑

导航