import os
import openpyxl
import xlrd
import pandas,time
def handle():
result = pandas.read_excel("d:\\a.xlsx", sheet_name = "Sheet1")
pp = "品牌:"
xh = "型号:"
for index,row in result.iterrows():
result_pp = pp + str(row[7])
result_xh = xh + str(row[6])
with open("d:\\11.txt", "a+") as f:
f.writelines(result_pp + " " + result_xh + "\n")
if __name__ == "__main__":
handle()
python标书制作辅助脚本pandas
于 2022-05-07 15:35:36 首次发布