![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python数据操作
修行小仙女
这个作者很懒,什么都没留下…
展开
-
混淆矩阵可视化 python实现
if __name__ == '__main__': import matplotlib.pyplot as plt import numpy as np confusion = np.array(([95,0,0,0,0,0, 5,0, 0,0], [17.5,80,0,0,2.5,0,0,0,0,0], [10, 2.5, 85,0,0,0,0,2.5,0,0], [10,12.5,5,57.5,0,2.5,0,2.5,5,5],[2.5,5,0,2.5,65,25,.原创 2021-01-18 15:06:16 · 2006 阅读 · 0 评论 -
python读取修改文件
filename = "test.txt" with open(filename,'a') as file_object: msg = 'scene:%s,confidence:%f,time-cost:%ds'%('sport',0.980,5) file_object.write(msg+'\n') file = open("test.txt") content = file.read() file.close() print(content)原创 2021-01-18 15:03:05 · 382 阅读 · 0 评论