21番茄网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 21番茄网
查看: 842|回复: 0

写入excel前查重

[复制链接]

646

主题

799

帖子

2686

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
2686
发表于 2021-1-23 15:40:35 | 显示全部楼层 |阅读模式
写入excel前查重:
C=load_workbook(path)
biao2=C['招标公告']
name_list=[]
for name in biao2.iter_rows(min_row=2,min_col=1,max_col=1,values_only=True):
    name_list.append(name[0])
    #print(name[0])
for information in link_need:
    if information[0] not in name_list:
        biao2.append(information)
        #print(information[0])






上一篇:openpyxl再总结(含官方链接)
下一篇:用openpyxl按行取数的另外一种方法
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|21番茄网 ( 粤ICP备10099428号 ) 奇远富

GMT+8, 2024-4-26 15:48 , Processed in 0.226882 second(s), 34 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表