Python还是很重要的,不能丢。学习IF和WHILE

number = 23
guess = int(input('Enter an interger : '))

if guess == number:
    print('Congratulations, you guessed it.')
    print('(but you do not win any prizes!)')
elif guess < number:
    print('No,it is a little higher than that')
else:
    print('No,it is a little lower than that')

print('Done')
number = 23
running = True

while running:
    guess = int(input('Enter an integer : '))

    if guess == number:
        print('Congratulations, you guessed it.')
        running = False
    elif guess < number:
        print('No, it is a little higher than that.')
    else:
        print('No, it is a little lower than that.')

    print('Done')

Python还是很重要的,不能丢。学习IF和WHILEPython还是很重要的,不能丢。学习IF和WHILE

上一篇:java中的线程池原理


下一篇:Windows Embedded CE 6.0开发环境的搭建