摘要:
def draw_prize(): import random prizes = ['iphone', '华为手机', '相机', 'computer', '8000现金'] data = list(range(100)) random_data = random.choice(data) whil 阅读全文
摘要:
def no_repeat(): """去掉重复的元素并返回结果->lis,提取重复的元素返回结果->list_repeat""" a = [1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10] lis = [] list_repeat = [] for 阅读全文