打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Python openpyxl使用教程
userphoto

2023.06.16 广东

关注

https://blog.csdn.net/qq_40910781/article/details/127270735

openpyxl
os
openpyxl.styles PatternFill
file1=os.getcwd()+wb1=openpyxl.load_workbook(file1)
sheet0_wb1=wb1.worksheets[]
sheet1_wb1=wb1.worksheets[]


(sheet1_wb1[])

list_column_A_sheet1_wb1 = (sheet1_wb1[])
datas_column_A_sheet1_wb1 = []
row list_column_A_sheet1_wb1:
    datas_column_A_sheet1_wb1.append((row.value).strip().upper())

cell sheet0_wb1[]:
    cell_value=(cell.value).strip().upper()
    cell_value datas_column_A_sheet1_wb1:
        (cell_value)
        cell.fill=PatternFill(=)
wb1.save(file1)
wb1.close()
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
Python openpyxl模块原理及用法解析
Python操作Excel之xlsx文件
(1)openpyxl读写excel2007使用笔记(转)下
Python基础之openpyxl如何实现vlookup函数
使用Python处理excel表格(openpyxl)教程
最全总结 | 聊聊 Python 办公自动化之 Excel(中)
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服