2021年9月6日
摘要: def addToAverage(average, size, value): ''' The following function adds a number to an average. average is the current average, size is the current nu 阅读全文
posted @ 2021-09-06 22:14 一杯明月 阅读(68) 评论(0) 推荐(0)
摘要: f = open('buffer.py','w+')#打开文件,如果没有该文件则新建文件 f.write(data)#写入文件 f.close()#关闭文件 file1 = open('/usr/share/openstack-dashboard/openstack_dashboard/dashbo 阅读全文
posted @ 2021-09-06 19:04 一杯明月 阅读(196) 评论(0) 推荐(0)
摘要: 参考:https://blog.csdn.net/qq_38497266/article/details/88871197 dets = np.array([[1,2],[3,4]]) np.savetxt("E:\workspace\dets.txt", dets,fmt='%f',delimit 阅读全文
posted @ 2021-09-06 12:05 一杯明月 阅读(2106) 评论(0) 推荐(0)
摘要: https://zhuanlan.zhihu.com/p/405240877 阅读全文
posted @ 2021-09-06 10:47 一杯明月 阅读(147) 评论(0) 推荐(0)
摘要: 来源:https://zhuanlan.zhihu.com/p/110005305 2.使用time.clock() Python time clock() 函数以浮点数计算的秒数返回当前的CPU时间。用来衡量不同程序的耗时,比time.time()更有用。 这个需要注意,在不同的系统上含义不同。在 阅读全文
posted @ 2021-09-06 10:13 一杯明月 阅读(4409) 评论(0) 推荐(0)