python的map和lambda

写一个抛物线:
lsit_x = [1,2,3,4,5,6,7,8,9]
list_y = [1,2,3,4,5,6,7,8,9]
r = map(lambda x,y: xx+2x*y, lsit_x,list_y)
print(list®)

python的map和lambda
map的两个参数要长度一致
如果map的两个参数长度不一致,那么按照最短的来计算

相关文章:

  • 2021-09-09
  • 2021-06-24
  • 2021-06-19
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
猜你喜欢
  • 2022-01-28
  • 2022-02-26
  • 2021-07-01
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2021-11-27
相关资源
相似解决方案