摘要:
a = np.array([1,2,3,4,4,5,2,1]) 是np.array而不是arange() 还可以加参数dtype = float 例如a = np.array([1,2,3,4,4,5,2,1],dtype = float) 还有一种方法是:创建一个1000*1000*3的RGB图片 阅读全文
posted @ 2021-06-18 09:04
bH1pJ
阅读(26)
评论(0)
推荐(0)
摘要:
https://www.runoob.com/python/att-string-format.html {:0>2d} 宽度为2,前边补0 保留小数点后两位 {:.2f} "{:s}, Time:{:.2f}min, Size:{:.2f}Gb".format(id, idTime/1000/60 阅读全文
posted @ 2021-06-18 09:02
bH1pJ
阅读(34)
评论(0)
推荐(0)
浙公网安备 33010602011771号