gym 自己环境搭建

http://t.csdn.cn/ILs89icon-default.png?t=M85Bhttp://t.csdn.cn/ILs89发现gym.envs文件夹下的_init_可以不加from ... import ... 只需要注册相应文件夹下的自己的环境就好,值得注意的:需要指定好文件路径 gym.envs.自己的环境文件夹名:自己写的环境名

自己的环境文件夹(gym.usv)内容: _init_.py   环境1.py  环境2.py

_init_.py 中填写     from 路径+环境1脚本名 import 脚本中写的class环境名

 

脚本内的class环境名

猜你喜欢

转载自blog.csdn.net/qq_42314865/article/details/128228388