TypeError: reduce() of empty sequence with no initial value, in Python

前端 未结 0 1815
忘了有多久
忘了有多久 2020-12-07 12:57

Currently I\'m working on this piece of code. It works fine now.

numbers = [1,2,3,4,5,6]
squared_numbers = map(lambda n: n*n, numbers)
# print(list(squared_nu         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题