摘要: import time def write_log(content): with open('text.log','a+',encoding='utf-8') as fw: data = time.strftime('%Y-%m-%d %H:%M:%S') s = '%s,内容 %s'%(data, 阅读全文
posted @ 2019-11-13 18:21 灰兔的魔王 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 读文件 import xlrd book = xlrd.open_workbook('学生名单.xlsx')#打开文档 sheet1 = book.sheet_by_name('作业')#打开第几页 print(sheet1.row_values(1))#获取指定的第几行的数据 print(shee 阅读全文
posted @ 2019-11-13 17:43 灰兔的魔王 阅读(114) 评论(0) 推荐(0) 编辑