Keep getting pop index out of range error

后端 未结 0 1805
逝去的感伤
逝去的感伤 2020-12-07 08:18
import random

def eliminate(vote_num):
  random.shuffle(names)
  for p in range(vote_num):
    names.pop(p)
  print(names)


names = []
for x in range(6):
  z = inp         


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