摘要:
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, 阅读全文
摘要:
读文件 import xlrd book = xlrd.open_workbook('学生名单.xlsx')#打开文档 sheet1 = book.sheet_by_name('作业')#打开第几页 print(sheet1.row_values(1))#获取指定的第几行的数据 print(shee 阅读全文