Is there any way to update the values of a list using python list comprehension?

前端 未结 0 1321
粉色の甜心
粉色の甜心 2021-02-01 14:27

for example: primes = [0,0,-1,-1,-1,-1,-1,-1,-1,-1,-1] #here primes is a list

now I want to update the values of primes. The iteration which correctly works

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