import pickle # 加载并查看 pkl 文件 def load_and_display_observations(file_path): with open(file_path, 'rb') as f: observations = pickle.load(f) # 打印观测值 for i, obs in enumerate(observations): print(f"Observation {i + 1}: {obs}") print(type(observations)) # 使用函数查看指定的 pkl 文件 load_and_display_observations('scripts/gyms/dribble_expert_data.pkl')