摘要: Python的第六天 一、random 模块 import random 导入random模块 1、 random.choice("abcdef") 参数也可以是一个列表 'c' 2、 s = "abcdefgh" random.sample(s,3) 从数据源s中随机取出3个值 ['b','a', 阅读全文
posted @ 2021-01-21 20:33 阳光帅气 阅读(111) 评论(0) 推荐(0) 编辑