以下进行猜测循环 while not guessed: guess = (hi + lo)//2 print("你心中想象的数字是:{}?".format(guess)) user_inp = input("如果显示的数据比你大,请输入