摘要: 1import random print('用列表存储随机整数:') ls = [random.randint(1,100) for i in range(5)] print(ls) print('\n用集合存储随机整数:') s1 = {random.randint(1,100) for i in 阅读全文
posted @ 2022-04-25 17:52 pray4hell 阅读(12) 评论(3) 推荐(0) 编辑