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

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')
Python还是很重要的,不能丢。学习IF和WHILE
Python还是很重要的,不能丢。学习IF和WHILE
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和WHILE

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

上一篇:文件上传


下一篇:东华软件反统方:一个能扼住医疗信息泄露咽喉的解决方案