9.10作业1、2、3

作业1:
# -*- coding: UTF-8 -*-
# Author:Vitan
number = 233
guess = 100
print('-----数字猜谜游戏-----')
while guess != number:
guess = int(input('请输入你猜的数字:'))
if guess == number:
print('恭喜你,猜对了')
elif guess < number:
print('猜的数字小了')
elif guess > number:
print('猜的数字大了')

猜你喜欢

转载自www.cnblogs.com/z233/p/9617502.html