fastapi 封装
This commit is contained in:
parent
7dd3eb820b
commit
31f60e8be5
2
main.py
2
main.py
@ -76,6 +76,8 @@ async def douyin_task(item: Device):
|
|||||||
|
|
||||||
endY = random.randint(0, int(height/10))
|
endY = random.randint(0, int(height/10))
|
||||||
startY = round(endY * 9.75, 1)
|
startY = round(endY * 9.75, 1)
|
||||||
|
if startY - endY < (height / 3):
|
||||||
|
startY += round((height / 3), 1)
|
||||||
|
|
||||||
# d.swipe_ext("up", scale=0.95, duration=0.1)
|
# d.swipe_ext("up", scale=0.95, duration=0.1)
|
||||||
print(f"({startX}, {startY}) => ({endX}, {endY})")
|
print(f"({startX}, {startY}) => ({endX}, {endY})")
|
||||||
|
Loading…
Reference in New Issue
Block a user