python目录操作 python目录文件操作 #当前文件的目录 current_path = os.path.dirname(os.path.realpath(__file__)) current_path1 = os.getcwd() #输出:E:\PycharmProjects\path_test\path_tes