python
import random
balance = random.randint(0, 100)
data_traffic = random.randint(0, 100)
call_times = random.randint(0, 100)
while True:
a = input("请输入你的查询类型(1:查询余额/2:查询剩余流量/3:查询剩余通话/0:退出系统):")
if a == "1":
print("你的余额是:", balance)
elif a == "2":
print("你的剩余流量是:", data_traffic)
elif a == "3":
print("你的剩余通话是:", call_times)
elif a == "0":
print("你成功退出了系统!")
break
else:
print("输入错误,请重新输入!")