读取excel中的数据到txt中

xiaoxiao2025-07-10  16

import openpyxl wb=openpyxl.load_workbook('fear2Expand.xlsx') #打开excel文件 # sheet=wb.get_sheet_by_name('Sheet3') #获取工作表 sheet=wb["sheet1"] for i in range(1,260,1): text=sheet.cell(row=i,column=1).value if text!="": print("fear",end='\t') #更加方便实用 print(text)

 

转载请注明原文地址: https://www.6miu.com/read-5032841.html

最新回复(0)