点击跳转到总目录
本篇只记录程序点击跳转项目
直接上代码
import os
import pandas as pd
import xlrd
def file(path):
name = []
a = os.listdir(path)
for b in a:
if os.path.splitext(b)[1] == ".xlsx" :
name.append(b)
return name
lj = r'E:\百度网盘下载\0备份'
c = file(lj)
data = []
for i in c:
text = xlrd.open_workbook(lj + "\\" + i)
sheet1 = text.sheets()[0]
hang = sheet1.nrows
title = ['岗位名称','公司全名','备注','薪资','年薪','工作地点','学历要求','工作年限']
for g in range(0,hang):
data.append(sheet1.row_values(g))
content = pd.DataFrame(data)
content.columns = title
content.to_excel(lj + "\\" + "new.xlsx",index=None,encoding='utf-8')
print("文件合并完成")