from random import randintnum = randint(0,100)print("Guess what I think:?")bingo = Falsewhile bingo == False: answer = int(input()) if answer < num: print("too small!") if answer > num: print("too big") if answer == num…
#Filename:game1.py guess=10 running=True while running: try: answer=int(raw_input('Guess what i think:')) except: print 'Please input interga\n' continue if answer<guess: print 'Your answer is too small\n' continue elif answer>guess: print 'Your ans…
猜数字的大小游戏 C:\Users\Administrator>python Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >…
import java.util.ArrayList; import java.util.List; import java.util.Random; public class Num01 { static List<Integer> numList = new ArrayList<>(); public static void createNum(){ List<Integer> list = new ArrayList<>(); for(int i =…