【发布时间】:2016-01-23 14:49:59
【问题描述】:
def game(digits):
five_digit = ""
for x in range(digits):
five_digit = str(random.randint(0, 9))
five_digit += five_digit
当我打印five_digit 时,我得到22、88、55、33 等的输出。
【问题讨论】:
标签: python function python-3.x for-loop