python 的os.path.isfile(name)总是返回false

2026年09月25日 08:27
有1个网友回答
网友(1):

os.path.isfile('D:\\python\\file.txt')

or

os.path.isfile(r'D:\python\test_function.py')