You can pass xrange with your upper and lower bound to sample: from random import sample print(sample(xrange(33, 126),8)).
確定! 回上一頁