1993| 6
|
[已解决]load_work参数问题 |
5鱼币
最佳答案import os
import openpyxl
from openpyxl import Workbook
from openpyxl import load_workbook
path = r'D:\python\test\build'
Beam_file = os.listdir(path)
print(Beam_file)
fileName = "D:\python\\test\\build\\" +Beam_file[0]
print(fileName)
wb = load_workbook(filename = fileName,read_only = True)
['1.xlsx', '4.xlsx']
D:\python\test\build\1.xlsx
Process finished with exit code 0
...
| ||
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
|
||
发表于 2020-9-22 17:53:15
|
显示全部楼层
本楼为最佳答案
| ||
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
|
||
发表于 2020-9-22 18:05:02
|
显示全部楼层
| ||
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
|
||
发表于 2020-9-22 18:07:00
|
显示全部楼层
| ||
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
|
||
| ||
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
|
||
| ||
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
|
||
发表于 2020-9-22 18:29:10
|
显示全部楼层
| ||
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
|
||
小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)
GMT+8, 2025-1-18 15:36
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.