问题: os.startfile('./data/a.txt')路径没有问题的情况下报错FileNotFoundError 解决方法 路径中要是用反斜杠\即可 os.startfile('.\\data\\a.txt')