[解决方法] 如何将训练过程保存为视频
如下测试代码可将训练过程保存在视频中:import gymfrom gym import wrappers env=gym.make('CartPole-v0')env=wrappers.Monitor(env,'/tmp/cartpole-experiment-1')for _ in range(20): observation=env.reset() for t in ran...