方法很简单只要一行代码 import os path = r'单引号里换成你的路径' os.system("pcmanfm %s" % path) 其中pcmanfm就是文件管理器 然后随你打开相对或绝对路径