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