#coding=utf-8 #猜字游戏 #导入随机数 import random #判断数的大小与答案的大小 def guess_judge(num): while (True): guess_judge_num = get_input_num() if (guess_judge_num == num): print("太棒了,答对了") break elif (guess_judge_num > num): print("比答案大,再猜") else