Finally, if you want need to generate a list of random integer numbers, use this: [random.randint(0,10) for _ in range(5)] # [0,10]
確定! 回上一頁