This commit is contained in:
chenwj 2022-11-23 16:21:45 +08:00
commit fca812778c
3 changed files with 6 additions and 4 deletions

View File

@ -44,7 +44,8 @@ try:
# 点击排列三
pls = S('//*[@id="vue2_el"]/div/section/div[6]/div[4]/div[3]')
# pls = S('//*[@id="vue2_el"]/div/section/div[6]/div[4]/div[3]')
pls = S('p.lottname.p3')
wait_until(pls.exists)
click(pls)
wait_until(Text('组选').exists)

4
pls.py
View File

@ -36,8 +36,8 @@ for i in sum_group6_dict.keys():
f2 = lambda number: len([i for i in number if int(i) %2 == 1]) != 0
f3 = lambda number: True if max(map(int, number)) - min(map(int, number)) != 2 else False
f4 = lambda number: True if '3' not in number else False
f5 = lambda number: True if '4' not in number else False
if i in [15, 19]:
f5 = lambda number: True if '2' not in number else False
if i in [15, 21]:
result = sum_group6_dict[i]+sum_group3_dict[i]
print(i, list(filter(f5, result)))
# print(i, sum_group3_dict[i])

View File

@ -161,4 +161,5 @@ class Chrome(object):
with Chrome(headless=False) as chrome:
chrome.balance()
chrome.pls(result = ['258', '357', '069', '168', '078'])
result = ['078', '348', '456', '069', '168', '177', '339', '366', '447', '678', '579', '489', '399', '669', '588']
chrome.pls(result = result)