1 numpy
reshape
a = np.array([[1., 1., 3.], [1., 1., 3.], [1., 1., 3.]])
print(a.reshape(1,-1))
b = a.reshape(1,-1)
print(b)
print(a)
[[1. 1. 3. 1. 1. 3. 1. 1. 3.]]
[[1. 1. 3. 1. 1. 3. 1. 1. 3.]]
[[1. 1. 3.]
[1. 1. 3.]
[1. 1. 3.]]
2 gym
3 python
https://book.pythontips.com/en/latest.html
*args **kwargs
Writing *args and **kwargs is just a convention.
https://book.pythontips.com/en/latest/args_and_kwargs.html
**kwargs 用来作为函数的参数传递,在函数内部调用时直接用 kwargs
dict
https://blog.csdn.net/Jerry_1126/article/details/78239530