处理文件 / 基本操作

import os

path1 = os.getcwd()
or
path2 = os.path.dirname(
    os.path.realpath(__file__))

print(path1)
print(path2)