python文本菜单程序

2025-01-07 22:31:44
推荐回答(2个)
回答1:

老。在最外层的叶柄基部有时还会产生新的侧芽。捕蝇草的叶柄有两种型态发生,有的捕蝇

回答2:

程序如下:

one=" "
while True:
print """(1)取五个数的和
(2)取五个数的平均值
(x)退出"""
one=raw_input('请输入编号:')
if one=='x':
print '成功退出'
break
elif one.isdigit()and int(one)==1:
print "handle with add"

elif one.isdigit()and int(one)==2:
print "handle with average"

else:
print '重新输入'