摘要: #!/usr/bin/python import xlrd import os ''' #read last line head data with open('ReadMac.txt',"r") as file: file_content = file.readlines() #把全文档读取为一个 阅读全文
posted @ 2022-12-07 15:48 江南王小帅 阅读(109) 评论(0) 推荐(0)
摘要: 读取文件夹内的所有表,输入想要查询的表名,列出对应表页签,查询对应内容并打印出来 import xlrd print('输入‘x’返回上一步!!!') while True: print('\n输入想要查询的表:') bio_name = input() with open('dizhi.txt', 阅读全文
posted @ 2022-12-07 12:25 江南王小帅 阅读(88) 评论(0) 推荐(0)
摘要: #!/usr/bin/python import xlrd # 打开excel表格 data_excel = xlrd.open_workbook('macHex-MMQ873-PCL.xls') # 获取所有sheet名称 names = data_excel.sheet_names() # 获取 阅读全文
posted @ 2022-12-07 11:52 江南王小帅 阅读(562) 评论(0) 推荐(0)