从2到21随机取几个数字,但不要取5,6,7,如何操作?
回答
import randoml = [2,3,4,8,9,10,11,12,13,14,15,16,17,18,19,20,21]
print([l[random.randint(0, 16)] for _ in range(5)])
以上是 从2到21随机取几个数字,但不要取5,6,7,如何操作? 的全部内容, 来源链接: utcz.com/a/37348.html
import randoml = [2,3,4,8,9,10,11,12,13,14,15,16,17,18,19,20,21]
print([l[random.randint(0, 16)] for _ in range(5)])
以上是 从2到21随机取几个数字,但不要取5,6,7,如何操作? 的全部内容, 来源链接: utcz.com/a/37348.html