Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我打算在 GYM 中创建范围从 0 到 10 的动作空间
I want action space like [0 0.5 1 ..... 10]
另一种方法是使用枚举。见下文
from enum import Enum class Actions(Enum): action1 = 0 action2 = 1 action3 = 2 # when you call action == Actions.action2.value