append(variable) inserts wrong value, i am at loss

后端 未结 0 1329
無奈伤痛
無奈伤痛 2020-11-21 06:04
def primesFaster(to_number):
array = [x for x in range(2, to_number + 1)]
result = list()
i = array[0]
while(i*i < to_number):
    result.append(array[i])
    for         


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