1 #!/usr/bin/env python
2 ret = map(lambda x : x+100 if x % 2 == 1 else x - 100, [1,2,3,4,5])
3 print(ret)
4 for i in ret :
5     print(i)

 

相关文章:

  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2021-06-21
  • 2022-02-24
  • 2022-01-14
  • 2021-08-14
猜你喜欢
  • 2022-12-23
  • 2021-06-18
  • 2022-03-08
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2021-05-28
相关资源
相似解决方案