#首页修改
This commit is contained in:
parent
361f25c4be
commit
dca5efd7f5
|
@ -0,0 +1,18 @@
|
||||||
|
#更新新媒体脚本,结果为有出入的新媒体列表。
|
||||||
|
'''
|
||||||
|
1,将excel转为csv,使用utf-8编码集。
|
||||||
|
2、获取csv内容
|
||||||
|
3、与数据库中的数据逐项对比
|
||||||
|
'''
|
||||||
|
import csv
|
||||||
|
|
||||||
|
|
||||||
|
def get_csv(path):
|
||||||
|
with open(path, encoding='utf-8') as csvfile:
|
||||||
|
reader = csv.reader(csvfile)
|
||||||
|
for r in reader:
|
||||||
|
|
||||||
|
print(r)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
get_csv('D:/2020/新媒体监测/TASK_ALL.csv')
|
Loading…
Reference in New Issue