Ebook123

导航

Python 猜年龄

# /usr/bin/python3.6.7
# -*- coding:UTF-8 -*-
# Time :2021/4/14 20:25
# Author:Ebook
# Name: PythonCode

count = 66
while True:
num = input("请输入数字:")
if int(num) > count:
print("\033[34;1m猜的太大了\033[0m")
elif int(num) < count:
print("\033[31;1m猜的太小了\033[0m")
else:
print("\033[35;1m恭喜你,猜对了\033[0m")
break
continue

 

posted on 2021-04-14 20:38  Ebook123  阅读(116)  评论(0编辑  收藏  举报