day03_11 if语句实现猜年龄01
老男孩猜年龄游戏
age_of_princal = 56 guess_age = int( input(">>:") ) #以下为伪代码 ''' if guess_age == age_of_princal then print("yes") else print("no") '''
#正确代码如下 if guess_age == age_of_princal: print("恭喜你,猜对啦") else: print("猜错啦")
posted on 2017-09-06 16:37 darkalex001 阅读(101) 评论(0) 编辑 收藏 举报