record.py 文件源码

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

项目:TensorKart 作者: kevinhughes27 项目源码 文件源码
def save_data(self):
        image_file = self.outputDir+'/'+'img_'+str(self.t)+'.png'
        self.bmp.SaveFile(image_file, wx.BITMAP_TYPE_PNG)

        # make / open outfile
        outfile = open(self.outputDir+'/'+'data.csv', 'a')

        # write line
        outfile.write( image_file + ',' + ','.join(map(str, self.controller_data)) + '\n' )
        outfile.close()

        self.t += 1
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号