import os os.path.exists("a.txt")
“a.txt”是一个文件而不是路径,所以我预计这个代码块会返回 False。但是,它返回 True。为什么?
我的python版本是Python 3.8.3.