原文地址:
https://www.cnblogs.com/lucifer1997/p/13801102.html
===================================================
random.seed(args.seed) np.random.seed(args.seed)
torch.cuda.manual_seed(args.seed) torch.manual_seed(args.seed) torch.backends.cudnn.deterministic = True
env = gym.make(env_name).unwrapped env.seed(args.seed)
==========================================