摘要: 关键:使用numpy import numpy as np np.random.randint(0, high=100, size=50) #随机生成0到100之间的不重复的整数,个数为50个 对比:生成固定整数 l_1 = [1]*20 #[1, 1, 1, ..., 1] l_2 = [2]*2 阅读全文
posted @ 2021-05-06 13:08 陈玉兰 阅读(335) 评论(0) 推荐(0) 编辑