随笔分类 - python学习
模拟大乐透代码
摘要:def binarysearch(_list,value): left = 0 right = len(_list) mid = int((left+right)/2) while (left<right): if value ==_list[mid]: return mid elif value<
阅读全文
摘要:`#随机数 import random red = range(1,36,1) red_target_list=[] i=1 while i< 6: red_ran_index=random.randint(0,34) #0-34 red_target_list_value=red[red_ran_
阅读全文