摘要: #一、不知道取啥名 ##1、with 它是一种上下文管理协议,目的在于从流程图中把 try,except 和finally 关键字和 资源分配释放相关代码统统去掉,简化try….except….finlally的处理流程 with通过__enter__方法初始化,然后在__exit__中做善后以及处 阅读全文
posted @ 2021-01-03 23:44 vstar_o 阅读(64) 评论(0) 推荐(0)
摘要: #1、读excel——xlrd #coding=utf-8 import xlrd import datetime from datetime import date def read_excel(): wb = xlrd.open_workbook(r'test.xlsx')#打开文件 print 阅读全文
posted @ 2021-01-03 21:37 vstar_o 阅读(83) 评论(0) 推荐(0)