是否可以更改 for 循环,在它运行后然后在下一次迭代中返回并更改它?
#the code example
score = 50
running = True
while running:
for rounds in range(0, 6):
for rounds in range(0, 6):
if input() == x:
score - 3
print(score)
elif input() == y:
score - 2
print(score)
elif input() == z:
score - 1
print(score)
elif input() == **change**:
#Edit previous loop input because of an error or typo(x should have been z previous iteration) #How would one make this happen?
慕标5832272
相关分类