用python写赛马娘脚本 全自动赛马娘脚本 Auto_Pretty Derby
先放上用脚本训练的成果


其实我一开始有一个想法就用python 去写一个模拟器脚本
但是大家都知道赛马娘 培养具有很多不稳定因素

所以研究了一点时间 用最笨的方法去实现 全自动赛马
现在在下面放上代码

from PIL import Image
import numpy as np
import pytesseract
import time
import cv2
import re
import os
import math
import operator
from functools import reduce
import cv2 as cvdef zhongma():os.system("adb devices")os.system("adb -s emulator-5554 shell input tap 874 2029")time.sleep(2)os.system("adb -s emulator-5554 shell input tap 518 2020")time.sleep(1)xunlainyaun()def xunlainyaun():os.system("adb -s emulator-5554 shell screencap -p sdcard/screen.png") #截取屏幕,图片命名为screen.pngos.system("adb -s emulator-5554 pull sdcard/screen.png D:\\ppc\\xu.png")img = Image.open(r"D:\\ppc\xu.png")cropped = img.crop((815,1990,1038,2076))  # (左,上,右,下 )#截图判断是否存在种马界面cropped.save(r"D:\\ppc\xu.png")img1_path=r'D:\ppc\xu.png'img2_path=r'D:\ppc\shuc\xu.png'try:# 读取图片img1 = cv2.imread(img1_path, cv2.IMREAD_GRAYSCALE)img2 = cv2.imread(img2_path, cv2.IMREAD_GRAYSCALE)# 初始化ORB检测器orb = cv2.ORB_create()kp1, des1 = orb.detectAndCompute(img1, None)kp2, des2 = orb.detectAndCompute(img2, None)# 提取并计算特征点bf = cv2.BFMatcher(cv2.NORM_HAMMING)# knn筛选结果matches = bf.knnMatch(des1, trainDescriptors=des2, k=2)# 查看最大匹配点数目good = [m for (m, n) in matches if m.distance < 0.55 * n.distance]#print(len(good))#print(len(matches))similary = len(good) / len(matches)print("两张图片相似度为:%s" % similary)if similary==0.9:print("等待训练员挑选马中---")xunlainyaun()time.sleep(1)else:print("训练员挑选马完毕---")quanzd()return similaryexcept:print("等待训练员挑选马中---")xunlainyaun()time.sleep(1)return '0'def quanzd():print("开始全自动种马")os.system("adb -s emulator-5554 shell input tap 741 1712")time.sleep(1)os.system("adb -s emulator-5554 shell input tap 744 1495")time.sleep(1)os.system("adb -s emulator-5554 shell input tap 510 2031")time.sleep(1)os.system("adb -s emulator-5554 shell input tap 761 1622")time.sleep(1)os.system("adb -s emulator-5554 shell input tap 761 1486")time.sleep(1)os.system("adb -s emulator-5554 shell input tap 558 2031")time.sleep(1)os.system("adb -s emulator-5554 shell input tap 851 2026")time.sleep(3)#跳过剧情time.sleep(3)os.system("adb -s emulator-5554 shell input tap 986 2241")time.sleep(2)os.system("adb -s emulator-5554 shell input tap 986 2241")time.sleep(2)os.system("adb -s emulator-5554 shell input tap 524 1565")time.sleep(2)os.system("adb -s emulator-5554 shell input tap 382 2293")time.sleep(2)os.system("adb -s emulator-5554 shell input tap 382 2293")time.sleep(2)saima()def saima():#time.sleep(5)os.system("adb -s emulator-5554 shell screencap -p sdcard/screen.png") #截取屏幕,图片命名为screen.pngos.system("adb -s emulator-5554 pull sdcard/screen.png D:\\ppc\\xn.png")img_path = r"D:\\ppc\xn.png"img = cv2.imread(img_path)gray_image = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)cv2.imwrite(r"D:\\ppc\xn.png",gray_image)print(img.shape)#识别速度img = Image.open(r"D:\\ppc\xn.png")   cropped = img.crop((107,1704,203,1742))  # (左,上,右,下 )cropped.save(r"D:\\ppc\xn1.png")num_1 = Image.open(r'D:\\ppc\xn1.png')print("当前速度:"+pytesseract.image_to_string(num_1))#识别耐力img = Image.open(r"D:\\ppc\xn.png")  cropped = img.crop((280,1703,373,1742))  # (左,上,右,下 )cropped.save(r"D:\\ppc\nai.png")num_1 = Image.open(r'D:\\ppc\nai.png')print("当前耐力:"+pytesseract.image_to_string(num_1))#识别爆发img = Image.open(r"D:\\ppc\xn.png")    cropped = img.crop((445,1702,541,1742))  # (左,上,右,下 )cropped.save(r"D:\\ppc\bao.png")num_1 = Image.open(r'D:\\ppc\bao.png')print("当前爆发:"+pytesseract.image_to_string(num_1))#识别根性img = Image.open(r"D:\\ppc\xn.png")    cropped = img.crop((615,1704,711,1740))  # (左,上,右,下 )cropped.save(r"D:\\ppc\gen.png")num_1 = Image.open(r'D:\\ppc\gen.png')print("当前根性:"+pytesseract.image_to_string(num_1))#识别学识img = Image.open(r"D:\\ppc\xn.png")    cropped = img.crop((774,1702,876,1740))  # (左,上,右,下 )cropped.save(r"D:\\ppc\xue.png")num_1 = Image.open(r'D:\\ppc\xue.png')print("当前学识:"+pytesseract.image_to_string(num_1))#识别关闭技能页面img = Image.open(r"D:\\ppc\xn.png")   cropped = img.crop((819,1996,1030,2078))  # (左,上,右,下 )cropped.save(r"D:\\ppc\jn.png")pic1=r"D:\\ppc\jn.png"pic2=r"D:\\ppc\shuc\jn.png"image1 = Image.open(pic1)image2 = Image.open(pic2)histogram1 = image1.histogram()histogram2 = image2.histogram()differ = math.sqrt(reduce(operator.add, list(map(lambda a,b: (a-b)**2,histogram1, histogram2)))/len(histogram1))nr=str(differ)  nr=str(nr)nr=nr.replace(r".0","")nr=nr.replace(r"\n","")nr=nr.replace(r".","")nr=str(nr)  #print(nr)nr+=str(1)#print(nr)a=("01")if nr==a:print("关闭技能页面")os.system("adb -s emulator-5554 shell input tap 109 2277")time.sleep(2)saima()else:pass#识别URA比赛img = Image.open(r"D:\\ppc\xn.png")   cropped = img.crop((638,1981,755,2043))  # (左,上,右,下 )cropped.save(r"D:\\ppc\URA.png")pic1=r"D:\\ppc\URA.png"pic2=r"D:\\ppc\shuc\URA.png"image1 = Image.open(pic1)image2 = Image.open(pic2)histogram1 = image1.histogram()histogram2 = image2.histogram()differ = math.sqrt(reduce(operator.add, list(map(lambda a,b: (a-b)**2,histogram1, histogram2)))/len(histogram1))nr=str(differ)  nr=str(nr)nr=nr.replace(r".0","")nr=nr.replace(r"\n","")nr=nr.replace(r".","")nr=str(nr)  #print(nr)nr+=str(1)#print(nr)a=("01")if nr==a:print("URA比赛")time.sleep(3)os.system("adb -s emulator-5554 shell input tap 748 2017")time.sleep(3)print("出走")os.system("adb -s emulator-5554 shell input tap 758 2030")time.sleep(2)os.system("adb -s emulator-5554 shell input tap 785 1593")time.sleep(10)os.system("adb -s emulator-5554 shell input tap 359 2174")time.sleep(3)os.system("adb -s emulator-5554 shell input tap 359 2174")time.sleep(5)os.system("adb -s emulator-5554 shell input tap 534 2182")time.sleep(8)os.system("adb -s emulator-5554 shell input tap 796 2204")time.sleep(3)os.system("adb -s emulator-5554 shell input tap 497 2096")time.sleep(5)os.system("adb -s emulator-5554 shell input tap 497 2096")time.sleep(3)os.system("adb -s emulator-5554 shell input tap 497 2096")time.sleep(5)else:pass#识别比赛img = Image.open(r"D:\\ppc\xn.png")   cropped = img.crop((655,1986,765,2056))  # (左,上,右,下 )cropped.save(r"D:\\ppc\bis.png")pic1=r"D:\\ppc\bis.png"pic2=r"D:\\ppc\shuc\bis.png"image1 = Image.open(pic1)image2 = Image.open(pic2)histogram1 = image1.histogram()histogram2 = image2.histogram()differ = math.sqrt(reduce(operator.add, list(map(lambda a,b: (a-b)**2,histogram1, histogram2)))/len(histogram1))nr=str(differ)  nr=str(nr)nr=nr.replace(r".0","")nr=nr.replace(r"\n","")nr=nr.replace(r".","")nr=str(nr)  #print(nr)nr+=str(1)#print(nr)a=("01")if nr==a:print("比赛")os.system("adb -s emulator-5554 shell input tap 748 2017")time.sleep(5)print("出走")os.system("adb -s emulator-5554 shell input tap 758 2030")time.sleep(5)os.system("adb -s emulator-5554 shell input tap 785 1593")time.sleep(10)tao()os.system("adb -s emulator-5554 shell input tap 359 2174")       time.sleep(5)os.system("adb -s emulator-5554 shell input tap 359 2174")time.sleep(5)os.system("adb -s emulator-5554 shell input tap 534 2182")time.sleep(8)os.system("adb -s emulator-5554 shell input tap 796 2204")time.sleep(5)os.system("adb -s emulator-5554 shell input tap 497 2096")time.sleep(5)os.system("adb -s emulator-5554 shell input tap 497 2096")time.sleep(5)os.system("adb -s emulator-5554 shell input tap 497 2096")time.sleep(5)else:pass#识别心情 绝好调img = Image.open(r"D:\\ppc\xn.png")   cropped = img.crop((874,227,941,252))  # (左,上,右,下 )cropped.save(r"D:\\ppc\xq.png")pic1=r"D:\\ppc\xq.png"pic2=r"D:\\ppc\shuc\xq.png"image1 = Image.open(pic1)image2 = Image.open(pic2)histogram1 = image1.histogram()histogram2 = image2.histogram()differ = math.sqrt(reduce(operator.add, list(map(lambda a,b: (a-b)**2,histogram1, histogram2)))/len(histogram1))nr=str(differ)  nr=str(nr)nr=nr.replace(r".0","")nr=nr.replace(r"\n","")nr=nr.replace(r".","")nr=str(nr)  #print(nr)nr+=str(1)#print(nr)a=("01")if nr<=a:print("当前心情 绝好调")else:pass#识别完成培养img = Image.open(r"D:\\ppc\xn.png")   cropped = img.crop((13,13,214,45))  # (左,上,右,下 )cropped.save(r"D:\\ppc\cg.png")pic1=r"D:\\ppc\cg.png"pic2=r"D:\\ppc\shuc\cg.png"image1 = Image.open(pic1)image2 = Image.open(pic2)histogram1 = image1.histogram()histogram2 = image2.histogram()differ = math.sqrt(reduce(operator.add, list(map(lambda a,b: (a-b)**2,histogram1, histogram2)))/len(histogram1))nr=str(differ)  nr=str(nr)nr=nr.replace(r".0","")nr=nr.replace(r"\n","")nr=nr.replace(r".","")nr=str(nr)  #print(nr)nr+=str(1)#print(nr)a=("01")if nr==a:cg()else:pass#识别心情 好调img = Image.open(r"D:\\ppc\xn.png")   cropped = img.crop((912,230,975,253))  # (左,上,右,下 )cropped.save(r"D:\\ppc\haodiao.png")pic1=r"D:\\ppc\haodiao.png"pic2=r"D:\\ppc\shuc\haodiao.png"image1 = Image.open(pic1)image2 = Image.open(pic2)histogram1 = image1.histogram()histogram2 = image2.histogram()differ = math.sqrt(reduce(operator.add, list(map(lambda a,b: (a-b)**2,histogram1, histogram2)))/len(histogram1))nr=str(differ)  nr=str(nr)nr=nr.replace(r".0","")nr=nr.replace(r"\n","")nr=nr.replace(r".","")nr=str(nr)  #print(nr)nr+=str(1)#print(nr)a=("01")if nr==a:print("当前心情 好调")os.system("adb -s emulator-5554 shell input tap 532 2106")time.sleep(2)saima()else:pass#识别心情 不调img = Image.open(r"D:\\ppc\xn.png")   cropped = img.crop((874,227,941,252))  # (左,上,右,下 )cropped.save(r"D:\\ppc\butiao.png")pic1=r"D:\\ppc\butiao.png"pic2=r"D:\\ppc\shuc\butiao.png"image1 = Image.open(pic1)image2 = Image.open(pic2)histogram1 = image1.histogram()histogram2 = image2.histogram()differ = math.sqrt(reduce(operator.add, list(map(lambda a,b: (a-b)**2,histogram1, histogram2)))/len(histogram1))nr=str(differ)  nr=str(nr)nr=nr.replace(r".0","")nr=nr.replace(r"\n","")nr=nr.replace(r".","")nr=str(nr)  #print(nr)nr+=str(1)#print(nr)a=("01")if nr==a:print("当前心情 不调")os.system("adb -s emulator-5554 shell input tap 532 2106")time.sleep(2)saima()else:pass#识别心情 绝不调img = Image.open(r"D:\\ppc\xn.png")   cropped = img.crop((874,227,941,252))  # (左,上,右,下 )cropped.save(r"D:\\ppc\juebutiao.png")pic1=r"D:\\ppc\juebutiao.png"pic2=r"D:\\ppc\shuc\juebutiao.png"image1 = Image.open(pic1)image2 = Image.open(pic2)histogram1 = image1.histogram()histogram2 = image2.histogram()differ = math.sqrt(reduce(operator.add, list(map(lambda a,b: (a-b)**2,histogram1, histogram2)))/len(histogram1))nr=str(differ)  nr=str(nr)nr=nr.replace(r".0","")nr=nr.replace(r"\n","")nr=nr.replace(r".","")nr=str(nr)  #print(nr)nr+=str(1)#print(nr)a=("01")if nr==a:print("当前心情 绝不调")os.system("adb -s emulator-5554 shell input tap 532 2106")time.sleep(2)saima()else:pass#识别心情 普通img = Image.open(r"D:\\ppc\xn.png")   cropped = img.crop((874,227,941,252))  # (左,上,右,下 )cropped.save(r"D:\\ppc\putong.png")pic1=r"D:\\ppc\putong.png"pic2=r"D:\\ppc\shuc\putong.png"image1 = Image.open(pic1)image2 = Image.open(pic2)histogram1 = image1.histogram()histogram2 = image2.histogram()differ = math.sqrt(reduce(operator.add, list(map(lambda a,b: (a-b)**2,histogram1, histogram2)))/len(histogram1))nr=str(differ)  nr=str(nr)nr=nr.replace(r".0","")nr=nr.replace(r"\n","")nr=nr.replace(r".","")nr=str(nr)  #print(nr)nr+=str(1)#print(nr)a=("01")if nr==a:print("当前心情 普通")os.system("adb -s emulator-5554 shell input tap 532 2106")saima()else:pass#识别粉丝img = Image.open(r"D:\\ppc\xn.png")   cropped = img.crop((438,979,785,1263))  # (左,上,右,下 )cropped.save(r"D:\\ppc\fens.png")pic1=r"D:\\ppc\fens.png"pic2=r"D:\\ppc\shuc\fens.png"image1 = Image.open(pic1)image2 = Image.open(pic2)histogram1 = image1.histogram()histogram2 = image2.histogram()differ = math.sqrt(reduce(operator.add, list(map(lambda a,b: (a-b)**2,histogram1, histogram2)))/len(histogram1))nr=str(differ)  nr=str(nr)nr=nr.replace(r".0","")nr=nr.replace(r"\n","")nr=nr.replace(r".","")nr=str(nr)  #print(nr)nr+=str(1)#print(nr)a=("01")if nr==a:print("当前粉丝不够 需要比赛")os.system("adb -s emulator-5554 shell input tap 756 1577")time.sleep(5)os.system("adb -s emulator-5554 shell input tap 758 2030")time.sleep(5)os.system("adb -s emulator-5554 shell input tap 785 1593")time.sleep(10)os.system("adb -s emulator-5554 shell input tap 359 2174")time.sleep(5)os.system("adb -s emulator-5554 shell input tap 359 2174")time.sleep(5)os.system("adb -s emulator-5554 shell input tap 534 2182")time.sleep(8)os.system("adb -s emulator-5554 shell input tap 796 2204")time.sleep(5)os.system("adb -s emulator-5554 shell input tap 497 2096")time.sleep(5)os.system("adb -s emulator-5554 shell input tap 497 2096")time.sleep(5)else:pass#识别支线对话img = Image.open(r"D:\\ppc\xn.png")   cropped = img.crop((47,1239,1027,1330))  # (左,上,右,下 )cropped.save(r"D:\\ppc\zhix.png")pic1=r"D:\\ppc\zhix.png"pic2=r"D:\\ppc\shuc\zhix.png"image1 = Image.open(pic1)image2 = Image.open(pic2)histogram1 = image1.histogram()histogram2 = image2.histogram()differ = math.sqrt(reduce(operator.add, list(map(lambda a,b: (a-b)**2,histogram1, histogram2)))/len(histogram1))nr=str(differ)  nr=str(nr)nr=nr.replace(r".0","")nr=nr.replace(r"\n","")nr=nr.replace(r".","")nr=str(nr)  #print(nr)nr+=str(1)#print(nr)a=("60364080275441951")if nr==a:print("支线对话")os.system("adb -s emulator-5554 shell input tap 502 1275")else:pass#识别支线对话img = Image.open(r"D:\\ppc\xn.png")   cropped = img.crop((51,1250,100,1316))  # (左,上,右,下 )cropped.save(r"D:\\ppc\zhixx.png")pic1=r"D:\\ppc\zhixx.png"pic2=r"D:\\ppc\shuc\zhixx.png"image1 = Image.open(pic1)image2 = Image.open(pic2)histogram1 = image1.histogram()histogram2 = image2.histogram()differ = math.sqrt(reduce(operator.add, list(map(lambda a,b: (a-b)**2,histogram1, histogram2)))/len(histogram1))nr=str(differ)  nr=str(nr)nr=nr.replace(r".0","")nr=nr.replace(r"\n","")nr=nr.replace(r".","")nr=str(nr)  #print(nr)nr+=str(1)#print(nr)a=("01")if nr==a:print("支线对话")os.system("adb -s emulator-5554 shell input tap 502 1275")time.sleep(5)else:pass#识别支线对话img = Image.open(r"D:\\ppc\xn.png")   cropped = img.crop((51,1089,108,1147))  # (左,上,右,下 )cropped.save(r"D:\\ppc\zhixxx.png")pic1=r"D:\\ppc\zhixxx.png"pic2=r"D:\\ppc\shuc\zhixxx.png"image1 = Image.open(pic1)image2 = Image.open(pic2)histogram1 = image1.histogram()histogram2 = image2.histogram()differ = math.sqrt(reduce(operator.add, list(map(lambda a,b: (a-b)**2,histogram1, histogram2)))/len(histogram1))nr=str(differ)  nr=str(nr)nr=nr.replace(r".0","")nr=nr.replace(r"\n","")nr=nr.replace(r".","")nr=str(nr)  #print(nr)nr+=str(1)#print(nr)a=("01")if nr==a:print("支线对话")os.system("adb -s emulator-5554 shell input tap 502 1275")time.sleep(5)else:pass#识别 保健室"#os.system("adb -s emulator-5554 shell screencap -p sdcard/screen.png") #截取屏幕,图片命名为screen.png#os.system("adb -s emulator-5554 pull sdcard/screen.png D:\\ppc\\boajians.png")img = Image.open(r"D:\\ppc\xn.png")   cropped = img.crop((159,2055,333,2177))  # (左,上,右,下 )cropped.save(r"D:\\ppc\boajians.png")pic1=r"D:\\ppc\boajians.png"pic2=r"D:\\ppc\shuc\boajians.png"image1 = Image.open(pic1)image2 = Image.open(pic2)histogram1 = image1.histogram()histogram2 = image2.histogram()differ = math.sqrt(reduce(operator.add, list(map(lambda a,b: (a-b)**2,histogram1, histogram2)))/len(histogram1))nr=str(differ)  nr=str(nr)nr=nr.replace(r".0","")nr=nr.replace(r"\n","")nr=nr.replace(r".","")nr=str(nr)  #print(nr)nr+=str(1)#print(nr)a=("01")if nr==a:print("")else:print("")passsaimaxunlain()def tao():os.system("adb -s emulator-5554 shell screencap -p sdcard/screen.png") #截取屏幕,图片命名为screen.pngos.system("adb -s emulator-5554 pull sdcard/screen.png D:\\ppc\\tao.png")img = Image.open(r"D:\\ppc\tao.png")   cropped = img.crop((971,1221,1006,1240))  # (左,上,右,下 )cropped.save(r"D:\\ppc\tao.png")pic1=r"D:\\ppc\tao.png"pic2=r"D:\\ppc\shuc\tao.png"image1 = Image.open(pic1)image2 = Image.open(pic2)histogram1 = image1.histogram()histogram2 = image2.histogram()differ = math.sqrt(reduce(operator.add, list(map(lambda a,b: (a-b)**2,histogram1, histogram2)))/len(histogram1))nr=str(differ)  nr=str(nr)nr=nr.replace(r".0","")nr=nr.replace(r"\n","")nr=nr.replace(r".","")nr=str(nr)  #print(nr)nr+=str(1)#print(nr)a=("01")if nr==a:print("当前选项是“大逃”")else:print("当前选项不是“大逃”")os.system("adb -s emulator-5554 shell input tap 859 1325")time.sleep(1)os.system("adb -s emulator-5554 shell input tap 889 1383")time.sleep(2)os.system("adb -s emulator-5554 shell input tap 775 1581")passdef saimaxunlain():time.sleep(3)os.system("adb -s emulator-5554 shell input tap 536 1895")time.sleep(2)os.system("adb -s emulator-5554 shell screencap -p sdcard/screen.png") #截取屏幕,图片命名为screen.pngos.system("adb -s emulator-5554 pull sdcard/screen.png D:\\ppc\\xu.png")#识别体力条img_path = r"D:\\ppc\xu.png"img = cv2.imread(img_path)gray_image = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)cv2.imwrite(r"D:\\ppc\xu.png",gray_image)print(img.shape)img = Image.open(r"D:\\ppc\xu.png")   cropped = img.crop((160,1796,260,1839))  # (左,上,右,下 )cropped.save(r"D:\\ppc\tili.png")num_1 = Image.open(r'D:\\ppc\tili.png')an=(pytesseract.image_to_string(num_1))an=str(an)an=an.replace(r"%","")an=an.replace(r"\n","")a=str(20)print(an)if an>a:print("回复体力")#os.system("adb -s emulator-5554 shell input tap 123 2260")#time.sleep(1)os.system("adb -s emulator-5554 shell input tap 123 2260")time.sleep(1)os.system("adb -s emulator-5554 shell input tap 147 1970")time.sleep(10)saima()else:time.sleep(1)os.system("adb -s emulator-5554 shell input tap 147 1970")time.sleep(10)saima()passdef cg():print("恭喜!! 已经顺利完成培养")a=input("")zhongma()

下载源文件 百度云盘
百度云盘
提取码:1qfe

用python写全自动赛马娘脚本 全自动赛马娘脚本 Auto_Pretty Derby相关推荐

  1. 用python写一个用驼峰法来命名变量脚本

    用python写一个用驼峰法来命名变量脚本 前言 一.思路 1.用有道翻译来翻译变量名 2.获取剪切板内容 3.热键监听来执行程序 二.使用步骤 1.大致的使用方法 2.要用到的库 2.主方法 总结 ...

  2. 用Python写一个企业微信自动化打卡的脚本

    好的,以下是用Python编写企业微信自动化打卡脚本的大致步骤: 安装必要的Python模块,如selenium.webdriver.pyautogui等. 在代码中使用selenium模拟打开企业微 ...

  3. 用Python写了个下载快手视频的小脚本

    最近又重新拾起了,对python的热情. 贴个地址: https://github.com/d1y/lovepack/blob/master/kuaishou.py 前戏说明 因为我近乎癫狂的喜欢一个 ...

  4. 马上就要十一大长假了!还没订好机票?用Python写了一个钉钉订低价票脚本!

    前言 中秋三天假期刚刚过去,很多人也像我一样回味无穷吧吗,感觉不过瘾.没关系紧接着就是十一大长假,不同于以往的三天假期,十一假期足足有五天的时间,甚至七天的假,可以好好的出去玩几天.面对国内如此多的旅 ...

  5. shell写的检测linux系统硬件信息的脚本

    前面用python写了一个检测windonws硬件信息的脚本,这里是很久之前用shell写的一个linux系统硬件信息检测脚本,可以对照看一下.检测内容基本一样:操作系统信息.内存.CPU.硬盘分区及 ...

  6. 写个自动导出华为交换机配置的脚本

    用 Python 写一个自动导出华为交换机配置的脚本,可以通过 Paramiko 库实现. 以下是一个简单的示例代码: import paramiko# 建立一个 ssh 客户端 ssh = para ...

  7. python爬虫捕鱼网站_一个简易的爬虫工具,使用Python语言编写,用于zhihu全自动捕鱼...

    简介 这是什么 这是一个简易的爬虫工具,使用Python语言编写,用于zhihu全自动捕鱼,理论上,你可以爬取你感兴趣的任何问题,而不仅仅是小姐姐. 如何使用 编程使用 请确保你的Python版本是3 ...

  8. 【任务脚本】0528京东618叠蛋糕任务脚本全自动脚本,京东任务全自动程序稳定运行,向大神致敬...

       公众号关注 "DLGG创客DIY" 设为"星标",重磅干货,第一时间送达. 0528: 用大神的脚本很多天了,除了前两天出现了个服务器问题,一直是无脑全自 ...

  9. 【任务脚本】0523更新京东618叠蛋糕任务脚本全自动脚本,大神更新了京东任务全自动程序...

       公众号关注 "DLGG创客DIY" 设为"星标",重磅干货,第一时间送达. 0523:     大神OrangeJs大神更新了京东叠蛋糕任务脚本,第一时间 ...

最新文章

  1. 职高学的计算机单招考试能换专业吗,2020年湖南中专生单招考大专能换专业吗?...
  2. imoocLinux环境变量配置文件笔记
  3. 关于二维码分块上色(彩色二维码)的算法研究
  4. 如何利用火狐获取网址中的提交链接
  5. Oracle分区技术特性详细解读
  6. python80行代码写一个文件整理软件
  7. C# break ,continue, return
  8. Python正则表达式查找最长数字子串(好未来2017笔试题)
  9. 【报告分享】中国移动互联网2021年度大报告.pdf(附下载链接)
  10. 运营前线1:一线运营专家的运营方法、技巧与实践03 与用户沟通,请避免这6个“坑”!...
  11. 博途v14电脑要求_博途V14或者V15,大家现在用的电脑-工业支持中心-西门子中国...
  12. 无线路由器WiFi密码破解
  13. 电脑怎么打出冒号符号_电脑键盘怎么打出冒号符号
  14. 二维码:STM32F103 + LCD屏制作二维码
  15. 有哪些营销书籍值得推荐?市场营销人员必读书单
  16. Eclipse用户工作台界面简介
  17. 钰泰半导体ETA4034爆款OVP+OCP+NTC+OTP+FAULT五合一方案, 兼容BQ24314
  18. 【Linux】系统维护命令
  19. 手机拍照光线不够白平衡自动改变_白平衡:一个被低估的参数,掌握好它,提升摄影中的色彩管理水平...
  20. 浩顺S2224型号扫码枪扫不出来数据,只嘀嘀嘀响

热门文章

  1. openGL ES进阶教程(二)之全景图片
  2. K210入门 MAIX DOCK——点灯(二)
  3. 新闻报道数量如何掌握?
  4. 编程命名规则:驼峰命名法和匈牙利命名法
  5. 十几款国内外嵌入式(物联网、工业)操作系统介绍
  6. OpenGL.Shader:12-阴影实现 - 解决阴影失真
  7. android 加阴影,Android设置控件阴影的三种方式
  8. Python3--反转链表之迭代,递归,穿针引线(头插法)
  9. android 运行版本不兼容,Android开发之——版本兼容性问题
  10. 联想笔记本的SCROLL LOCK键