91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

非常完整的Python源代碼,不僅提供源代碼還包含所有的教程,教你如何搭建環境并且完整運行代碼,是最新并且十分難得的學習項目,新手無壓力!特別是還能順便關注一下抖音上的小姐姐哈!所以,3C幣真的不多!博主還有更多編程語言的源代碼、開發實戰項目在不斷更新中,所以歡迎關注博主或私聊,會有你需要的!

資源截圖

代碼片段和文件信息

#?-*-?coding:?utf-8?-*-
import?sys
import?random
import?time
from?PIL?import?Image


if?sys.version_info.major?!=?3:
????print(‘Please?run?under?Python3‘)
????exit(1)
try:
????from?common?import?debug?config?screenshot?UnicodeStreamFilter
????from?common.auto_adb?import?auto_adb
????from?common?import?apiutil
????from?common.compression?import?resize_image
except?Exception?as?ex:
????print(ex)
????print(‘請將腳本放在項目根目錄中運行‘)
????print(‘請檢查項目根目錄中的?common?文件夾是否存在‘)
????exit(1)

VERSION?=?“0.0.1“

#?我申請的?Key,隨便用,嘻嘻嘻
#?申請地址?http://ai.qq.com
AppID?=?‘1106858595‘
AppKey?=?‘bNUNgOpY6AeeJjFu‘

DEBUG_SWITCH?=?True
FACE_PATH?=?‘face/‘

adb?=?auto_adb()
adb.test_device()
config?=?config.open_accordant_config()

#?審美標準
BEAUTY_THRESHOLD?=?80

#?最小年齡
GIRL_MIN_AGE?=?18


def?yes_or_no():
????“““
????檢查是否已經為啟動程序做好了準備
????“““
????while?True:
????????yes_or_no?=?str(input(‘請確保手機打開了?ADB?并連接了電腦,‘
??????????????????????????????‘然后打開手機軟件,確定開始?[y/n]:‘))
????????if?yes_or_no?==?‘y‘:
????????????break
????????elif?yes_or_no?==?‘n‘:
????????????print(‘謝謝使用‘?end=‘‘)
????????????exit(0)
????????else:
????????????print(‘請重新輸入‘)


def?_random_bias(num):
????“““
????random?bias
????:param?num:
????:return:
????“““
????print(‘num?=?‘?num)
????return?random.randint(-num?num)


def?next_page():
????“““
????翻到下一頁
????:return:
????“““
????cmd?=?‘shell?input?swipe?{x1}?{y1}?{x2}?{y2}?{duration}‘.format(
????????x1=config[‘center_point‘][‘x‘]
????????y1=config[‘center_point‘][‘y‘]+config[‘center_point‘][‘ry‘]
????????x2=config[‘center_point‘][‘x‘]
????????y2=config[‘center_point‘][‘y‘]
????????duration=200
????)
????adb.run(cmd)
????time.sleep(1.5)


def?follow_user():
????“““
????關注用戶
????:return:
????“““
????cmd?=?‘shell?input?tap?{x}?{y}‘.format(
????????x=config[‘follow_bottom‘][‘x‘]?+?_random_bias(10)
????????y=config[‘follow_bottom‘][‘y‘]?+?_random_bias(10)
????)
????adb.run(cmd)
????time.sleep(0.5)


def?thumbs_up():
????“““
????點贊
????:return:
????“““
????cmd?=?‘shell?input?tap?{x}?{y}‘.format(
????????x=config[‘star_bottom‘][‘x‘]?+?_random_bias(10)
????????y=config[‘star_bottom‘][‘y‘]?+?_random_bias(10)
????)
????adb.run(cmd)
????time.sleep(0.5)


def?main():
????“““
????main
????:return:
????“““
????print(‘程序版本號:{}‘.format(VERSION))
????print(‘激活窗口并按?CONTROL?+?C?組合鍵退出‘)
????debug.dump_device_info()
????screenshot.check_screenshot()

????while?True:
????????next_page()

????????time.sleep(1)
????????screenshot.pull_screenshot()

????????resize_image(‘autojump.png‘?‘optimized.png‘?1024*1024)

????????with?open(‘optimized.png‘?‘rb‘)?as?bin_data:
????????????image_data?=?bin_data.read()

????????ai_obj?=?apiutil.AiPlat(AppID?AppKey)
????????rsp?=?ai_obj.face_detectface(image_data?0)

????????major_total?=?0
????????minor_total?=?0

????????if?rsp[‘ret‘]?==?0:
????????????beauty?=?0
????????????for?face?in?rsp[‘data‘][‘face_list‘]:
????????????????print(face)
????????????????face_area?=?(face[‘x‘]?face[‘y‘]?face[‘x‘]+face[‘width‘]?face[‘y‘]+face[‘height‘])
??????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-06-07?08:44??Douyin-Bot-master\
?????文件????????1220??2018-06-07?08:44??Douyin-Bot-master\.gitignore
?????文件????????1079??2018-06-07?08:44??Douyin-Bot-master\LICENSE
?????文件????????2285??2018-06-07?08:44??Douyin-Bot-master\README.md
?????目錄???????????0??2018-06-07?08:44??Douyin-Bot-master\Tools\
?????文件???????96256??2018-06-07?08:44??Douyin-Bot-master\Tools\AdbWinApi.dll
?????文件???????60928??2018-06-07?08:44??Douyin-Bot-master\Tools\AdbWinUsbApi.dll
?????文件?????????764??2018-06-07?08:44??Douyin-Bot-master\Tools\README.md
?????文件?????1009664??2018-06-07?08:44??Douyin-Bot-master\Tools\adb.exe
?????文件??????196608??2018-06-07?08:44??Douyin-Bot-master\Tools\fastboot.exe
?????目錄???????????0??2018-06-07?08:44??Douyin-Bot-master\apk\
?????文件??????163634??2018-06-07?08:44??Douyin-Bot-master\apk\ADBKeyBoard.apk
?????文件??????669211??2018-06-07?08:44??Douyin-Bot-master\apk\_macosx_64bit.7z
?????文件?????2872068??2018-06-07?08:44??Douyin-Bot-master\apk\aapt
?????文件??????456986??2018-06-07?08:44??Douyin-Bot-master\autojump.png
?????目錄???????????0??2018-06-07?08:44??Douyin-Bot-master\common\
?????文件?????????589??2018-06-07?08:44??Douyin-Bot-master\common\UnicodeStreamFilter.py
?????文件???????????0??2018-06-07?08:44??Douyin-Bot-master\common\__init__.py
?????文件????????1804??2018-06-07?08:44??Douyin-Bot-master\common\ai.py
?????文件????????1876??2018-06-07?08:44??Douyin-Bot-master\common\apiutil.py
?????文件????????2513??2018-06-07?08:44??Douyin-Bot-master\common\auto_adb.py
?????文件?????????833??2018-06-07?08:44??Douyin-Bot-master\common\compression.py
?????文件????????1405??2018-06-07?08:44??Douyin-Bot-master\common\config.py
?????文件????????3619??2018-06-07?08:44??Douyin-Bot-master\common\debug.py
?????文件?????????561??2018-06-07?08:44??Douyin-Bot-master\common\excel_keyword.py
?????文件????????1939??2018-06-07?08:44??Douyin-Bot-master\common\screenshot.py
?????目錄???????????0??2018-06-07?08:44??Douyin-Bot-master\config\
?????目錄???????????0??2018-06-07?08:44??Douyin-Bot-master\config\1920x1080\
?????文件?????????244??2018-06-07?08:44??Douyin-Bot-master\config\1920x1080\config.json
?????文件?????????244??2018-06-07?08:44??Douyin-Bot-master\config\default.json
?????文件????????4251??2018-06-07?08:44??Douyin-Bot-master\douyin-bot.py
............此處省略77個文件信息

評論

共有 條評論