python3

Contributor:abcdeabcdeabcde Type:代码 Date time:2017-02-01 09:56:15 Favorite:12 Score:0
返回上页 Report
请选择举报理由:




Collection Modify the typo
import random
the_number = random.randint(1, 100)
guess = int(input("Guess a number between 1 and 100: "))
while guess != the_number:
if guess > the_number:
print(guess, "was too high. Try again.")
if guess < the_number:
print(guess, "was too low. Try again.")
guess = int(input("Guess again: "))
print(guess, "was the number! You win!")
声明:以上文章均为用户自行添加,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。
Hot degree:
Difficulty:
quality:
Description: the system according to the heat, the difficulty, the quality of automatic certification, the certification of the article will be involved in typing!

This paper typing ranking TOP20

登录后可见

用户更多文章推荐