我对python相当陌生,正在做一些基本的代码。我需要知道如果答案不是肯定的或否定的,我是否可以重复我的迭代。这是代码(对不起那些认为我做坏习惯的人)。我需要在其他过程中重复迭代。(该函数目前仅输出文本)
if remove_char1_attr1 = 'yes':
char1_attr1.remove(min(char1_attr1))
char1_attr1_5 = random.randint(1,6)
char1_attr1.append(char1_attr1_5)
print("The numbers are now as follows: " +char1_attr1 )
elif remove_char1_attr1 = 'no'
break
else:
incorrect_response()
冉冉说
森栏
相关分类