python自动投注软件 |
您所在的位置:网站首页 › 手机订阅号怎么取消首行缩进模式 › python自动投注软件 |
python写的自动投注脚本(SSC) #coding:utf-8 import time from selenium import webdriver from selenium.webdriver.common.keys import Keys import os,random,re import urllib import get_cphao def get3qihao_old(now_qishu): #取近3期的旧版本 #返回近3期组六 list3=[] x=get_cphao.getbyqi(str(int(now_qishu)-1)) y=get_cphao.getbyqi(str(int(now_qishu)-2)) z=get_cphao.getbyqi(str(int(now_qishu)-3)) print x,y,z for z6 in [x,y,z]: if z6!=None: list3.append("".join(sorted(z6))) else: continue return list3 def get3qihao(now_qishu): page = urllib.urlopen(url) sc=page.read() list3=[] for a in range(int(now_qishu),int(now_qishu)-3,-1): print str(a)+'期' a=str(int(a)-1) reg = str(a)+r'.*\n.**' imgre1 = re.compile(reg) b= re.findall(imgre1,sc) # print "b",b if len(b)!=0: c= "".join(b).split('') #['170624040 12:41\r\n\t\t\t\t 5', '3', '9', '2', '7']# print "c",c if len(c)!=0: print c[2]+c[3]+c[4][0] hao=str(c[2]+c[3]+c[4][0]) list3.append("".join(sorted(hao))) else: continue print list3 return list3 def Proceed(dic): sy=0 cb=0 # dic={u'170624072': 0.64, u'170624080': 0.64, u'170624083': 0.64, u'170624082': 0.64, u'170624085': 0.64, u'170624084': 0.64, u'170624086': 0.64} for k,v in dic.items(): # print get_cphao.getbyqi(k) temp=get_cphao.getbyqi(k) if temp!=None: # temp=get_cphao.getbyqi(k) a= "".join(sorted(temp)) if a in haoma: sy+=dic[k]*2.5 cb+=dic[k] |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |