# -*- coding: utf-8 -*-
import numpy as np
import pickle
from geopy.distance import geodesic
import os
import math
A = math.degrees(-math.pi)
# Change the current working directory to the location of 'Combined Trajectory_Label_Geolife' folder.
# # 将当前工作目录改为'Combined Trajectory_Label_Geolife'文件夹的位置。
filename =r'../Combined Trajectory_Label_Geolife/Revised_Trajectory_Label_Array.pickle'
with open('Revised_Trajectory_Label_Array.pickle', 'rb') as f:
Trajectory_Label_Array = pickle.load(f)
改成:with open(filename, 'rb') as f: