怎么用python实现文件浏览与选择(word等等
怎么用python实现文件浏览与选择(word等等 import osimport easygui as g
from subprocess import run
path = 'd:\\'
file = g.fileopenbox(msg='你要显示的信息。' , title='你的标题',
default=os.path.join(path,'*.*'), filetypes=['*.docx','*.xlsx',['*.docx','*.xlsx','Office files']], multiple=False)
if file != None and file != '.':
run(file, shell=True) 要用其他库好像是docx pdf3库等
页:
[1]