import pandas
# 创建表格格式
# ad = pandas.DataFrame({"a": range(1, 10), "b": range(10, 20)})
ad = pandas.DataFrame({"name":['lala', 'bbb', 'ccc'], "成绩":[10, 20, 30]})
# 导入
read = pandas.read_excel("C:\xxx\xx\xx.xls", encoding='gbk')
# 导出
to = ad.to_excel("C:\xxx\xx\xx.xls", encoding='gbk')