摘要: 需求:猜用户年龄,最多猜三次,猜完三次提醒用户是否还要猜,如果要猜请输入y,否则就退出程序 1 age_new = int(input("please input guess age:")) 2 count -= 1 3 if age_new == age: 4 print("答对了") 5 elif age_new > age: 6 ... 阅读全文
posted @ 2018-04-10 17:28 zengwenhai 阅读(177) 评论(0) 推荐(0) 编辑