age_of_XueKe=18age=int(input("age:"))if age == age_of_XueKe: print("Yes,you got it!")elif age >age_of_XueKe: print("Think smaller!")else: print("Think bigger!")
猜年龄大小(elif的用法)
原文:https://www.cnblogs.com/shmilymima/p/9265513.html