图 a 图 b |
from random import randint import csv
k = int(input("请输入抽取人数: print("抽取人员名单为: ")
f = open("mingdan.csv")
f_csv = csv.reader(f)
dic = {}
num = 0
for row in f_csv:
if num == 0:"))
print(row[0]," ",row[1])
num += 1
continue
dic[num] = [row[0],row[1]]
num += 1
f.close()
num -= 1
i = 0
while i < k:
luck = ①
print(dic[luck][0], ③ )
i += 1
if num == i + 1:
Break