📜  python打开文件相同的文件夹 - Python代码示例

📅  最后修改于: 2022-03-11 14:46:55.533000             🧑  作者: Mango

代码示例1
import os
with open(os.path.join(sys.path[0], "my_file.txt"), "r") as f:
    print(f.read())