spyder的问题
L = [] x = 1 while x <= 100: L.append(x * x) x = x + 1 print sum(L)
在spyder2.7上运行这段代码,报错:TypeError: 'float' object is not callable
请问这是怎么回事呢?
L = [] x = 1 while x <= 100: L.append(x * x) x = x + 1 print sum(L)
在spyder2.7上运行这段代码,报错:TypeError: 'float' object is not callable
请问这是怎么回事呢?
2017-03-14
举报