导包 import os
os.startfile("文件夹路径/文件路径")
打开指定文件夹 os.startfile("F:\XMind") 打开指定文件 os.startfile("F:\XMind\XMind.exe")
导包 import os
os.startfile("文件夹路径/文件路径")
打开指定文件夹 os.startfile("F:\XMind") 打开指定文件 os.startfile("F:\XMind\XMind.exe")
python作为一种具有相对简单语法的高级解释语言,即使对于那些没有编程经验的人来说,Python也是简单易操作的。强大的Python库让你事半功倍。
1 import os2 3 os.startfile(r'D:\test_input.html')
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M