摘要:
operands could not be broadcast together with shapes (130,2) (2,2) 改正方法: 在对矩阵进行相乘时,使用 np.dot(a,b) 阅读全文
posted @ 2020-03-25 15:33
小娜子成长记
阅读(11994)
评论(0)
推荐(0)
摘要:
基本用法: print("{} {}".format("hello","world")) hello world 阅读全文
posted @ 2020-03-25 15:30
小娜子成长记
阅读(140)
评论(0)
推荐(0)
摘要:
zip(a,b)的作用:将俩个输入,对应位置组合在一起,得到一个输出 转换为元组: a = [1,2,3] b= [5,6,7] print(tuple(zip(a,b))) ((1, 5), (2, 6), (3, 7)) 转换为列表: a = [1,2,3] b= [5,6,7] print(l 阅读全文
posted @ 2020-03-25 11:28
小娜子成长记
阅读(836)
评论(0)
推荐(0)
浙公网安备 33010602011771号