import csv import random as r def main(): c = r.sample(range(0,57), 10) #生成含有10个不重复随机数的数组 list_all = [] #新建一个空链表用来存储谜语与谜底 list_be_chiose = [] #y用来存放被选中的题目 with open('儿童谜语集.csv','r',encoding='utf-8-sig') as f1: reader=csv.reader(f1) next(reader)