2017-04-17 55 views

回答

5

問題是m,no的類型是str。您需要添加int各地input,如下:

import numpy 
m = int(input("Enter M: ")) 
n = int(input("Enter N: ")) 
o = int(input("Enter O: ")) 

A = numpy.random.random((m,n)) 
B = numpy.random.random((n,o)) 
相關問題