AttributeError: 'float' object has no attribute 'process_time ...
www.codeleading.com › article › 31001740890AttributeError: 'float' object has no attribute 'process_time'. import numpy as np import time x1 = [9, 2, 5, 0, 0, 7, 5, 0, 0, 0, 9, 2, 5, 0, 0] x2 = [9, 2, 2, 9, 0, 9, 2, 5, 0, 0, 9, 2, 5, 0, 0] time1 = time.process_time () outer = np.zeros ( (len (x1),len (x2))) for i in range (len (x1)): for j in range (len (x2)): dst [i,j] = x1 [i] * x2 [j] time2 = time.process_time () time = time2 - time1 print (str (time * 1000)+"ms") mul = np.zeros (len (x1)) time3 = time.process_time () for i in ...