def checkI():
while True:
x = input(“请输入:”)
if x == ‘1’:
print(‘当前余额为:999元’)
elif x == ‘2’:
print(‘当前剩余流量为:5G’)
elif x == ‘3’:
print(‘当前剩余通话为:189分钟’)
elif x == ‘0’:
print(‘退出自助查询系统’)
break
else:
print(“请输入1-3”)
break
print(’——————10086查询功能——————\n’)
print(‘输入1,查询当前余额\n’
‘输入2,查询当前剩余流量\n’
‘输入3,查询当前剩余通话\n’
‘输入0,退出自助查询系统!’)
checkI()
def checkI():
step = input(‘请输入当天行走的步数:’)
calorie = int(step) * 28
print(‘今天共消耗卡路里:’, calorie, “(即”, calorie / 1000, “千卡)”)
checkI()
Tanks =[‘苏烈’, ‘刘邦’, ‘钟馗’, ‘张飞’, ‘牛魔’, ‘程咬金’, ‘白起’, ‘刘禅’, ‘庄周’, ‘项羽’, ‘廉颇’, ‘巨灵神’, ‘安禄山’, ‘猪八戒’]
warriors = [‘狂铁’, ‘裴擒虎’, ‘铠’, ‘孙悟空’, ‘哪吒’, ‘杨戬’, ‘橘右京’, ‘亚瑟’, ‘雅典娜’, ‘夏侯惇’, ‘关羽’, ‘吕布’, ‘韩信’, ‘老夫子’, ‘达摩’, ‘典韦’, ‘曹操’,
‘钟无艳’, ‘墨子’, ‘赵云’, ‘刑天’, ‘龙且’]
Assassins = [‘百里玄策’, ‘庞统’, ‘花木兰’, ‘阿轲’, ‘不知火舞’, ‘李白’, ‘娜可露露’, ‘兰陵王’, ‘露娜’, ‘韩信’, ‘宫本武藏’, ‘盖聂’, ‘红拂’]
Masters = [‘杨玉环’, ‘弈星’, ‘女娲’, ‘周瑜’, ‘鬼谷子’, ‘芈月’, ‘干将莫邪’, ‘东皇太一’, ‘大乔’, ‘诸葛亮’, ‘貂蝉’, ‘张良’, ‘安琪拉’, ‘不知火舞’, ‘姜子牙’, ‘武则天’,
‘王昭君’, ‘甄姬’, ‘扁鹊’, ‘高渐离’, ‘嬴政’, ‘妲己’, ‘小乔’]
Shooters = [‘公孙离’, ‘百里守约’, ‘后羿’, ‘刘备’, ‘黄忠’, ‘马可波罗’, ‘成吉思汗’, ‘虞姬’, ‘李元芳’, ‘艾琳’, ‘狄仁杰’, ‘鲁班七号’, ‘孙尚香’]
auxiliarys = [‘明世隐’, ‘梦奇’, ‘孙膑’, ‘太乙真人’, ‘蔡文姬’]
def show(list):
for i in list:
print(i, end=’’)
print(’“王者荣耀”游戏角色:’)
print(‘坦克:’)
show(Tanks)
print(’\n战士:’)
show(warriors)
print(’\n刺客:’)
show(Assassins)
print(’\n法师:’)
show(Masters)
print(’\n射手:’)
show(Shooters)
print(’\n辅助:’)
show(auxiliarys)
print(’’)
print(’\n查询能量请输入能量来源,退出程序请输入0\n’)
print(‘能量来源如下:\n\n’‘生活缴费、行走捐、共享单车、线下支付、网络购票\n’)
print(‘请输入以上能量来源’)
def checkI():
while True:
x = input(“请输入:”)
if x == ‘生活缴费’:
print(‘200g’)
elif x == ‘行走捐’:
print(‘300g’)
elif x == ‘共享单车’:
print(‘85g’)
elif x == ‘线下支付’:
print(‘6g’)
elif x == ‘网络购票’:
print(‘50g’)
elif x == ‘0’:
print(‘已退出’)
break
checkI()
作者:wax_gourd_ic
来源:CSDN
原文:https://blog.csdn.net/wax_gourd_ic/article/details/90304902
版权声明:本文为博主原创文章,转载请附上博文链接!