执行下面Python程序,当输入3时,输出结果是?( )
number = 7 guess = -1 print('猜数字!') while guess != number: guess = int(input("请输入你要猜的数字")) if guess == number: print("你猜中了,真厉害!") elif guess < number: print("猜小了,再猜猜?") elif guess > number: print("猜大了,再猜猜?")
你猜中了,真厉害!
猜小了,再猜猜?
猜大了,再猜猜?
恭喜你,猜对了!