下面的Python3.x整数乘法平均在1.66s到1.77s之间进行:start_time = time.time()for x in range(0, 10000000): num += 2 * x * x
print("--- %s seconds ---" % (time.time() - start_tim
Inc.,200523\n'In [10]: x
Out[10]: 'LF如您所见,在Python3中,x和print(x)的输出是相同的。X.decode(‘ISO8859-1’)和打印(x.decode(‘ISO8859-1’)也是如此。在Python2中,情况并非如此。为什么Python2和<em