定义和用法randint()方法返回从指定范围内选择的整数元素。 实例返回3到9之间的数字(均包括在内): import random print(random.randint(3, 9)) 尝试一下 ...
確定! 回上一頁