老男孩猜年龄游戏
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("猜错啦")
老男孩猜年龄游戏
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("猜错啦")