S SmartDocs
系列: python old python 4 行 · 更新于 2026-02-03

Teaching.py

python_old/Teaching.py

import random   # pick secret = random.randint(1, 100)
secret = random.randint(1, 100)
guess = int(input("Guess the number: "))
attempts_left = 7

相关文章