千家信息网

python循环

发表于:2024-09-30 作者:千家信息网编辑
千家信息网最后更新 2024年09月30日,#Author:LiPeijingage_of_oldboy = 56count = 0while count < 3: gess_age = int(input("guess age:"))
千家信息网最后更新 2024年09月30日python循环
#Author:LiPeijingage_of_oldboy = 56count = 0while count < 3:    gess_age = int(input("guess age:"))    if gess_age == age_of_oldboy:        print("yes, you got it")        break    elif gess_age > age_of_oldboy:        print("think smaller")    else:        print("think bigger")    count += 1else:    print("you have tired too many times..fuck off")


0