2020年11月6日
摘要: import tensorflow as tf import numpy as np a = np.array([1,2,3,4,5,6,7,8,9],dtype='float32'); a = a.reshape(3,3); c = a + [22,33,44];#c.dtype='float64 阅读全文
posted @ 2020-11-06 11:07 一杯明月 阅读(7833) 评论(0) 推荐(0)
摘要: http://cnblogs.com/dabiao/archive/2010/03/07/1680096.html 一、int函数能够 (1)把符合数学格式的数字型字符串转换成整数 (2)把浮点数转换成整数,但是只是简单的取整,而非四舍五入。 举例: 1 aa = int("124") #Corre 阅读全文
posted @ 2020-11-06 10:57 一杯明月 阅读(36338) 评论(0) 推荐(0)