'''
功能:猜数游戏
作者:Sherry
时间:2021.11.5
'''from random import randint
select ='y'try:while select =='y':
num = randint(1,100)
choose =int(input('Please input your choose:'))while choose != num:if choose > num:
choose =int(input('You choose biger than system choose:'))elif choose < num:
choose =int(input('You choose smaller than system choose:'))else:print('Great! You are No.1!')
select =input('Do you want play again?(y/n):')print('Thanks for play my game!')except ValueError:print('Please return this code! Tips:System choose number is in (1, 100)')