给定生成随机数字串的Python while循环程序,运行结果不可能的是?
import random
i=1;s=""
while i<=6:
a=random.randint(0,9)#产生[0,9]之间的随机整数,包含9
if a % 3==(i+1)%3:
s+=str(a)
i+=1
print(s)
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析