dqn_pendulum.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:DQN_pendulum 作者: ashitani 项目源码 文件源码
def get_svg(self):
        """
        ???????????????SVG???
        """
        dr=sw.Drawing("hoge.svg",(150,150))
        c=(75,75)
        dr.add(dr.line(c,(c[0]+50*np.sin(self.th),c[1]+50*np.cos(self.th)), stroke=sw.utils.rgb(0,0,0),stroke_width=3))
        return SVG(dr.tostring())

# ??????????????????????????????
# ?????????????????????????????????
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号