python标书制作辅助脚本pandas

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,python)