嘿伙计们可以帮助这个循环它进入第一个如果并且卡住感谢你的帮助
Options = int(input('Enter an Options :'))
while Options != 0:
if Options == 1:
item = input('enter the item : ')
qnty = int(input('Enter the Quantitiy for the item : '))
Shoping_list[item] = qnty
elif Options == 2:
for item in Shoping_list:
print(item, ':', Shoping_list[item])
item = input('Enter the item you want to Remove : ')
del(Shoping_list[item])
elif Options == 3:
for item in Shoping_list:
print(item, ':', Shoping_list[item])
elif Options != 0:
print('you didnt enter a valid number ')
else:
print('shopping list is close')
慕盖茨4494581
慕妹3242003
肥皂起泡泡
人到中年有点甜
相关分类