random 模块有大量的函数用来产生随机数和随机选择元素。 比如,要想从一个序列中随机的 ... 生成随机整数,请使用 random.randint() :. >>> random.randint(0,10) 2 ...
確定! 回上一頁