import os file_path = os.path.dirname(__file__) os.path.exists(test_file.txt) 相关文章: 2021-12-20 2021-11-23 2021-12-20 2022-02-26 2022-12-23 2021-10-02 2021-06-01 2021-12-03