天龙怀旧游戏python脚本

设置图:

游戏窗口最大化。

海贼洞这里定位你要回点的定位。

运行bat就行,脚本出错了还是会重新运行脚本,运行自动启动,end暂停脚本,home重新启动脚本

1.  我常用的是内挂回点脚本,

下面都是前台脚本,如果颜色点位没有区别,那么恭喜直接可以用,如果不能正常运作,那么颜色点位不一样,思路给你了,抓点抓色对应修改动手一下吧。

新建批处理 ng.bat

@echo off  
set "script_path=E:\soft\game\sleep\NG.py"  :: 替换为你的python.py脚本的实际路径  
set "max_wait=120"                             :: 设置等待时间为120秒(2分钟)  
timeout /t 5  
:loop  echo Checking python.py...  powershell -Command "Start-Process python -Verb RunAs -ArgumentList '""%script_path%"""' -Wait"  if %errorlevel% neq 0 (  echo python.py failed. Waiting %max_wait% seconds before retrying...  timeout /t %max_wait% >nul  ) else (  echo python.py executed successfully.  )  
goto :loop

新建python脚本 ng.py

# -*- coding: utf-8 -*-  
import pygetwindow as gw  
import pyautogui  
import time  
import random  
import threading  
from pynput.keyboard import Key,Listener  running = True  
listener = None  def perform_click(x,y,duration=0.2,delay_range=(0.3,0.4)):  pyautogui.moveTo(x,y,duration=duration)  delay = random.uniform(*delay_range)  time.sleep(delay)  pyautogui.mouseDown(x,y,button='left')  delay = random.uniform(*delay_range)  time.sleep(delay)  pyautogui.mouseUp(x,y,button='left')  def on_press(key):  global running  if key == Key.home:  print("继续运行脚本")  running = True  elif key == Key.end:  print("暂停运行脚本")  running = False  def start_listener():  global listener  with Listener(on_press=on_press) as listener:  listener.join()  listener_thread = threading.Thread(target=start_listener,daemon=True)  
listener_thread.start()  
delay = random.uniform(2.3,2.5)
time.sleep(delay)  while True:  if running:  color1 = pyautogui.pixel(2544,144)  #内挂if color1 == (255,243,49):  perform_click(2544,144,duration=0.5,delay_range=(0.3,0.5))  delay = random.uniform(0.5,1.0)time.sleep(delay)pyautogui.moveTo(1600,169, duration=0.2)color4 = pyautogui.pixel(1294,322)          #断线点1color5 = pyautogui.pixel(1177,335)          #断线点2if color4 == (255,242,99)  and color5 == (255,242,99)  :  delay = random.uniform(15.0,20.0)time.sleep(delay)perform_click(1344,356,duration=0.2,delay_range=(0.3,0.5))  delay = random.uniform(5.0,6.0)time.sleep(delay)color2 = pyautogui.pixel(1205,397)          #死亡判断点1color3 = pyautogui.pixel(1150,397)          #死亡判断点2if color2 == (37,37,37)  and      color3 == (37,37,37) :delay = random.uniform(200,210)time.sleep(delay)perform_click(1357,397,duration=0.2,delay_range=(0.3,0.5))  delay = random.uniform(5.0,6.0)time.sleep(delay)# 上面是人物死亡出鞘pyautogui.press('tab')delay = random.uniform(0.5,1.0)time.sleep(delay)perform_click(2448,326,duration=0.2,delay_range=(0.3,0.5))  pyautogui.mouseDown(2448,326,button='left')pyautogui.mouseUp(2448,326 ,button='left')    delay = random.uniform(0.04,0.05)time.sleep(delay)pyautogui.mouseDown(2448,326,button='left')pyautogui.mouseUp(2448,326,button='left')      delay = random.uniform(3,4)time.sleep(delay)pyautogui.press('tab')delay = random.uniform(0.5,1.0)time.sleep(delay)perform_click(73,351,duration=0.2,delay_range=(0.3,0.5))  delay = random.uniform(5,6)time.sleep(delay)#上面是走出地府delay = random.uniform(2.0,2.2)time.sleep(delay)perform_click(1299,1313,duration=0.2,delay_range=(0.3,0.5))              delay = random.uniform(0.5,1.0)time.sleep(delay)perform_click(1361,866,duration=0.2,delay_range=(0.3,0.5))     delay = random.uniform(0.5,1.0)time.sleep(delay)perform_click(1419,936,duration=0.2,delay_range=(0.3,0.5))             delay = random.uniform(0.5,1.0)time.sleep(delay)perform_click(1296,825,duration=0.2,delay_range=(0.3,0.5))       delay = random.uniform(8,9)time.sleep(delay)#上面是大理使用地彻符起飞color7799 = pyautogui.pixel(575,208)          #珍兽未关闭if color7799 == (248,196,88) :  delay = random.uniform(0.5,0.8)time.sleep(delay)perform_click(968,1383,duration=0.2,delay_range=(0.3,0.5))    delay = random.uniform(0.5,0.8)time.sleep(delay)color7788 = pyautogui.pixel(93,112)          #珍兽未出站if color7788 != (231,211,123) :  delay = random.uniform(0.3,0.5)time.sleep(delay)perform_click(968,1383,duration=0.2,delay_range=(0.3,0.5))    delay = random.uniform(0.5,0.8)time.sleep(delay)color77991 = pyautogui.pixel(575,208)          #珍兽未关闭if color77991 == (248,196,88) :  perform_click(191,505,duration=0.2,delay_range=(0.3,0.5))    delay = random.uniform(0.5,0.8)time.sleep(delay)perform_click(194,542,duration=0.2,delay_range=(0.3,0.5))    delay = random.uniform(3.5,4.0)time.sleep(delay)perform_click(968,1383,duration=0.2,delay_range=(0.3,0.5))    delay = random.uniform(0.5,0.8)time.sleep(delay)time.sleep(0.5)  # # 由于listener是一个daemon线程,它会在主线程结束时自动退出。因此,不需要显式停止它。

2.  打马活动脚本

新建批处理 dm.bat

@echo off  
set "script_path=E:\soft\game\sleep\DM.py"  :: 替换为你的python.py脚本的实际路径  
set "max_wait=120"                             :: 设置等待时间为120秒(2分钟)  
timeout /t 5  
:loop  echo Checking python.py...  powershell -Command "Start-Process python -Verb RunAs -ArgumentList '""%script_path%"""' -Wait"  if %errorlevel% neq 0 (  echo python.py failed. Waiting %max_wait% seconds before retrying...  timeout /t %max_wait% >nul  ) else (  echo python.py executed successfully.  )  
goto :loop

新建python脚本 dm.py

# -*- coding: utf-8 -*-  
import pygetwindow as gw  
import pyautogui  
import time  
import random  
import threading  
from pynput.keyboard import Key,Listener  running = True  
listener = None  def perform_click(x,y,duration=0.2,delay_range=(0.3,0.4)):  pyautogui.moveTo(x,y,duration=duration)  delay = random.uniform(*delay_range)  time.sleep(delay)  pyautogui.mouseDown(x,y,button='left')  delay = random.uniform(*delay_range)  time.sleep(delay)  pyautogui.mouseUp(x,y,button='left')  def on_press(key):  global running  if key == Key.home:  print("继续运行脚本")  running = True  elif key == Key.end:  print("暂停运行脚本")  running = False  def start_listener():  global listener  with Listener(on_press=on_press) as listener:  listener.join()  listener_thread = threading.Thread(target=start_listener,daemon=True)  
listener_thread.start()  while True:  if running:  colordanshua1 = pyautogui.pixel(278,52)  #有血colordanshua2 = pyautogui.pixel(453,58)  #是马贼colordanshua3 = pyautogui.pixel(279,35)  #白怪colordanshua33 = pyautogui.pixel(279,35)  #红怪if colordanshua1 == (255,162,150)    and colordanshua3  != (155,153,152)      and  colordanshua2 == (205,195,196)     or  colordanshua33  == (155,1,1)     :pyautogui.press('F2')  delay = random.uniform(0.11,0.12)time.sleep(delay)  else:  pyautogui.press('F1')        delay = random.uniform(0.11,0.12)time.sleep(delay)    colordanshua1  = pyautogui.pixel(278,52)  #没血if colordanshua1 != (255,162,150)      :pyautogui.press('F1')  delay = random.uniform(0.11,0.12)time.sleep(delay)          colordanshua1  = pyautogui.pixel(278,64)  #怒气if colordanshua1 == (255,255,213)      :pyautogui.press('F1')  delay = random.uniform(0.11,0.12)time.sleep(delay)          colordanshuamb1 = pyautogui.pixel(1206,136)  #目标1colordanshuamb2 = pyautogui.pixel(1360,216)  #目标5if colordanshuamb1 == (1,1,1)  and  colordanshuamb2 ==  (1,1,1)    :pyautogui.press('F1')  delay = random.uniform(0.11,0.12)time.sleep(delay)    colordanshua3 = pyautogui.pixel(279,35)  #红怪colordanshua21 = pyautogui.pixel(360,52)  #怪物大半血colordanshua23 = pyautogui.pixel(1224,1344)  #F4技能好了if    colordanshua3  == (155,1,1)    and  colordanshua21 == (255,162,150)  and    colordanshua23 != (33,28,19)   :delay = random.uniform(0.20,0.22)time.sleep(delay)  pyautogui.press('F5')  delay = random.uniform(0.20,0.22)time.sleep(delay)  pyautogui.press('F4')  delay = random.uniform(0.20,0.22)time.sleep(delay)  pyautogui.press('F6')  delay = random.uniform(0.20,0.22)time.sleep(delay)  colordanshua33 = pyautogui.pixel(279,35)  #红怪colordanshua21 = pyautogui.pixel(360,52)  #怪物大半血colordanshua22 = pyautogui.pixel(1188,1344)  #F3技能好了if    colordanshua33  == (155,1,1)   and  colordanshua21 == (255,162,150)  and  colordanshua22 != (33,28,19)    :delay = random.uniform(0.2,0.3)time.sleep(delay)  pyautogui.press('F5')  delay = random.uniform(0.20,0.22)time.sleep(delay)  pyautogui.press('F3')  delay = random.uniform(0.20,0.22)time.sleep(delay)  colorlan2 = pyautogui.pixel(104,63)   #  没蓝if colorlan2 != (193,188,255) :delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.press('F7')  #  吃蓝delay =  random.uniform(0.21,0.22)time.sleep(delay)    colorjiaxue13 = pyautogui.pixel(166,57)   #  没血if colorjiaxue13  !=(255,162,150)  :delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.press('F10')  # 吃血delay =  random.uniform(0.21,0.22)time.sleep(delay)    colorccc1 = pyautogui.pixel(93,112)   # 宝宝在colorccc2 = pyautogui.pixel(180,100)   # 珍兽50%血        if colorccc1 == (231,211,123)  and  colorccc2  != (255,162,150) :   # 宝宝加血delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.press('F8')  # delay =  random.uniform(0.21,0.22)time.sleep(delay)    colorccc11 = pyautogui.pixel(93,112)   # 宝宝在colorccc21 = pyautogui.pixel(150,100)   # 珍兽30%血        if colorccc11 == (231,211,123)  and  colorccc21  != (255,162,150) :   # 宝宝加血delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.press('F9')  # delay =  random.uniform(0.21,0.22)time.sleep(delay)    colorcccdz1 = pyautogui.pixel(3,175)   # 队友1在colorcccdz2 = pyautogui.pixel(58,69)   # 我是队长if   colorcccdz1  == (0,0,0)  and  colorcccdz2  == (219,31,10) :   # 给队长delay =  random.uniform(3.21,3.22)time.sleep(delay)    pyautogui.moveTo(20,170, duration=0.2)delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.mouseDown(20,170, button='left')pyautogui.mouseUp(20,170, button='left')delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.mouseDown(20,170, button='right')pyautogui.mouseUp(20,170, button='right')delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.moveTo(47,243, duration=0.2)delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.mouseDown(47,243, button='left')pyautogui.mouseUp(47,243, button='left')delay =  random.uniform(0.21,0.22)time.sleep(delay)    colorcccdz3 = pyautogui.pixel(1581,1382)   # 闪烁if   colorcccdz3  == (49,41,32)  :   # 加队delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.moveTo(1581,1382, duration=0.2)delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.mouseDown(1581,1382, button='left')pyautogui.mouseUp(1581,1382, button='left')delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.moveTo(1563,836, duration=0.2)delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.mouseDown(1563,836, button='left')pyautogui.mouseUp(1563,836, button='left')delay =  random.uniform(0.21,0.22)time.sleep(delay)    colorcccdz11 = pyautogui.pixel(3,175)   # 队友1不在colorcccdz21 = pyautogui.pixel(58,69)   # 我是队长if   colorcccdz11  != (0,0,0)  and  colorcccdz21  == (219,31,10) :   # 解散队delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.moveTo(37,62, duration=0.2)delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.mouseDown(37,62, button='left')pyautogui.mouseUp(37,62, button='left')delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.mouseDown(37,62, button='right')pyautogui.mouseUp(37,62, button='right')delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.moveTo(62,71, duration=0.2)delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.mouseDown(62,71, button='left')pyautogui.mouseUp(62,71, button='left')delay =  random.uniform(0.21,0.22)time.sleep(delay)    time.sleep(0.02)  # # 由于listener是一个daemon线程,它会在主线程结束时自动退出。因此,不需要显式停止它。

3.  副本打怪脚本

新建批处理 dg.bat

@echo off  
set "script_path=E:\soft\game\sleep\DG.py"  :: 替换为你的python.py脚本的实际路径  
set "max_wait=120"                             :: 设置等待时间为120秒(2分钟)  
timeout /t 5  
:loop  echo Checking python.py...  powershell -Command "Start-Process python -Verb RunAs -ArgumentList '""%script_path%"""' -Wait"  if %errorlevel% neq 0 (  echo python.py failed. Waiting %max_wait% seconds before retrying...  timeout /t %max_wait% >nul  ) else (  echo python.py executed successfully.  )  
goto :loop

新建python脚本 dg.py

# -*- coding: utf-8 -*-  
import pygetwindow as gw  
import pyautogui  
import time  
import random  
import threading  
from pynput.keyboard import Key,Listener  running = True  
listener = None  def perform_click(x,y,duration=0.2,delay_range=(0.3,0.4)):  pyautogui.moveTo(x,y,duration=duration)  delay = random.uniform(*delay_range)  time.sleep(delay)  pyautogui.mouseDown(x,y,button='left')  delay = random.uniform(*delay_range)  time.sleep(delay)  pyautogui.mouseUp(x,y,button='left')  def on_press(key):  global running  if key == Key.home:  print("继续运行脚本")  running = True  elif key == Key.end:  print("暂停运行脚本")  running = False  def start_listener():  global listener  with Listener(on_press=on_press) as listener:  listener.join()  listener_thread = threading.Thread(target=start_listener,daemon=True)  
listener_thread.start()  while True:  if running:  colordanshua1 = pyautogui.pixel(278,52)  #有血if colordanshua1 == (255,162,150)  :pyautogui.press('F2')  delay = random.uniform(0.11,0.12)time.sleep(delay)  else:  pyautogui.press('F1')  delay = random.uniform(0.11,0.12)time.sleep(delay)    colordanshuamb1 = pyautogui.pixel(1206,136)  #目标1colordanshuamb2 = pyautogui.pixel(1360,216)  #目标5if colordanshuamb1 == (1,1,1)  and  colordanshuamb2 ==  (1,1,1)    :pyautogui.press('F1')  delay = random.uniform(0.11,0.12)time.sleep(delay)    colordanshua3 = pyautogui.pixel(279,35)  #红怪colordanshua21 = pyautogui.pixel(360,52)  #怪物大半血colordanshua23 = pyautogui.pixel(1224,1344)  #F4技能好了if    colordanshua3  == (155,1,1)    and  colordanshua21 == (255,162,150)  and    colordanshua23 != (33,28,19)   :delay = random.uniform(0.2,0.3)time.sleep(delay)  pyautogui.press('F5')  delay = random.uniform(0.2,0.3)time.sleep(delay)  pyautogui.press('F4')  delay = random.uniform(0.2,0.3)time.sleep(delay)  pyautogui.press('F6')  delay = random.uniform(0.2,0.3)time.sleep(delay)  colordanshua211 = pyautogui.pixel(278,52)  #有血if colordanshua211 == (255,162,150)  :pyautogui.press('F2')  delay = random.uniform(0.11,0.12)time.sleep(delay)  else:  pyautogui.press('F1')  delay = random.uniform(0.11,0.12)time.sleep(delay)    colordanshua33 = pyautogui.pixel(279,35)  #红怪colordanshua21 = pyautogui.pixel(360,52)  #怪物大半血colordanshua22 = pyautogui.pixel(1188,1344)  #F3技能好了if    colordanshua33  == (155,1,1)   and  colordanshua21 == (255,162,150)  and  colordanshua22 != (33,28,19)    :delay = random.uniform(0.2,0.3)time.sleep(delay)  pyautogui.press('F5')  delay = random.uniform(0.2,0.3)time.sleep(delay)  pyautogui.press('F3')  delay = random.uniform(0.2,0.3)time.sleep(delay)  colorjiaxue1 = pyautogui.pixel(93,112)   # 宝宝在colorjiaxue2 = pyautogui.pixel(166,57)   #  没血colorjiaxue5 = pyautogui.pixel(1477,1298)   #  共生colorjiaxue6 = pyautogui.pixel(199,100)   # 宝宝满血if colorjiaxue1 == (231,211,123)    and colorjiaxue2 != (255,162,150)     and      colorjiaxue5  != (49,41,29)  and      colorjiaxue6  == (255,162,150) :delay =  random.uniform(0.21,0.22)time.sleep(delay)    perform_click(1477,1315,duration=0.2,delay_range=(0.3,0.5))  delay =  random.uniform(0.21,0.22)time.sleep(delay)    colorlan2 = pyautogui.pixel(104,63)   #  没蓝if colorlan2 != (193,188,255) :delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.press('F7')  #  吃蓝delay =  random.uniform(0.21,0.22)time.sleep(delay)    colorjiaxue14 = pyautogui.pixel(93,112)   # 宝宝不在colorjiaxue13 = pyautogui.pixel(166,57)   #  没血if colorjiaxue13  !=(255,162,150)  and  colorjiaxue14  != (231,211,123):delay = random.uniform(0.2,0.3)time.sleep(delay)    pyautogui.press('F10')  # 吃血delay =  random.uniform(0.21,0.22)time.sleep(delay)    colorccc1 = pyautogui.pixel(93,112)   # 宝宝在colorccc2 = pyautogui.pixel(180,100)   # 珍兽30%血        if colorccc1 == (231,211,123)  and  colorccc2  != (255,162,150) :   # 宝宝加血delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.press('F8')  # delay =  random.uniform(0.21,0.22)time.sleep(delay)    colorccc11 = pyautogui.pixel(93,112)   # 宝宝在colorccc21 = pyautogui.pixel(150,100)   # 珍兽30%血        if colorccc11 == (231,211,123)  and  colorccc21  != (255,162,150) :   # 宝宝加血delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.press('F9')  # delay =  random.uniform(0.21,0.22)time.sleep(delay)    time.sleep(0.02)  # # 由于listener是一个daemon线程,它会在主线程结束时自动退出。因此,不需要显式停止它。

4.  摆摊(路中央)

bat

@echo off  
set "script_path=E:\soft\game\sleep\baitan.py"  :: 替换为你的python.py脚本的实际路径  
set "max_wait=120"                             :: 设置等待时间为120秒(2分钟)  
timeout /t 5  
:loop  echo Checking python.py...  powershell -Command "Start-Process python -Verb RunAs -ArgumentList '""%script_path%"""' -Wait"  if %errorlevel% neq 0 (  echo python.py failed. Waiting %max_wait% seconds before retrying...  timeout /t %max_wait% >nul  ) else (  echo python.py executed successfully.  )  
goto :loop

python

# -*- coding: utf-8 -*-  
import pygetwindow as gw  
import pyautogui  
import time  
import random  
import threading  
from pynput.keyboard import Key,Listener  running = True  
listener = None  def perform_click(x,y,duration=0.2,delay_range=(0.3,0.4)):  pyautogui.moveTo(x,y,duration=duration)  delay = random.uniform(*delay_range)  time.sleep(delay)  pyautogui.mouseDown(x,y,button='left')  delay = random.uniform(*delay_range)  time.sleep(delay)  pyautogui.mouseUp(x,y,button='left')  def on_press(key):  global running  if key == Key.home:  print("继续运行脚本")  running = True  elif key == Key.end:  print("暂停运行脚本")  running = False  def start_listener():  global listener  with Listener(on_press=on_press) as listener:  listener.join()  listener_thread = threading.Thread(target=start_listener,daemon=True)  
listener_thread.start()  while True:  if running:  delay =  random.uniform(2.1,2.2)time.sleep(delay)    pyautogui.moveTo(2249,1094, duration=0.2)  移动到背包摆摊delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.mouseDown(2249,1094, button='left')   点击背包摆摊pyautogui.mouseUp(2249,1094, button='left')  点击背包摆摊delay =  random.uniform(0.21,0.22)time.sleep(delay)    colordanshua1 = pyautogui.pixel(1395,615)  if colordanshua1 == (245,191,80)  :  #摆摊中间界面打开右上角黄色,说明此处可以摆摊pyautogui.moveTo(1118,1279, duration=0.2)  #  移动到轻功delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.mouseDown(1118,1279, button='left') # 点击轻功pyautogui.mouseUp(1118,1279, button='left')  # 点击轻功delay =  random.uniform(0.21,0.22)time.sleep(delay)    delay = random.uniform(0.06,0.08)time.sleep(delay)  pyautogui.moveTo(897,640, duration=0.1) #  移动路中间摆摊delay =  random.uniform(0.21,0.22)time.sleep(delay)    pyautogui.mouseDown(897,640, button='left') #点击路中间摆摊pyautogui.mouseUp(897,640, button='left')delay =  random.uniform(0.02,0.03)time.sleep(delay)    pyautogui.moveTo(1340,803, duration=0.1)  #移动到确认摆摊delay =  random.uniform(0.02,0.03)time.sleep(delay)    pyautogui.mouseDown(1340,803, button='left') 点击确认摆摊pyautogui.mouseUp(1340,803, button='left')delay =  random.uniform(3.1,3.2)time.sleep(delay)    colordanshua2 = pyautogui.pixel(1395,615)  #摆摊if colordanshua2 != (245,191,80)  :delay =  random.uniform(3.1,3.2)time.sleep(delay)    time.sleep(0.02)  # # 由于listener是一个daemon线程,它会在主线程结束时自动退出。因此,不需要显式停止它。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/bicheng/8754.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Python-100-Days: Day09 Object-oriented programming(OOP) Upgrade

1.property装饰器 之前有讨论过, Python中属性和方法访问权限的问题,不建议将属性设置为私有的,倘若直接将属性暴露给外界也是存在问题的。例如,我们没有办法检查赋给属性的值是否有效。之前的建议是将属性命名以单下划线开头&am…

C#贪吃蛇

C#贪吃蛇 文章目录 Program.csText1Game.csISceneUpdate.csText2BeginScene.csBegionOrEndScene.csEndScene.csGameScene.csText3GameObject.csIDraw.csPosition.csText4Food.csSnakeBody.csWall.csText5Map.csText6Snake.csProgram.cs using 贪吃蛇.Text1;Game game = new Ga…

java语言数据结构(单链表)

前言 不得承认java应用的广泛,所以毅然决定java版本的数据结构和算法专题还是要坚决更新。每日更新2题,希望学习的小伙伴可以关注一波跟上,评论区欢迎讨论交流。 实现原理 节点(Node):链表的基本构建单元…

ElementUI Select选择器多选获取选中对象

html <el-form-item label"账户标签&#xff1a;" prop"tags"><el-selectstyle"width: 500px"value-key"tagId"v-model"form.tags"clearablefilterablemultipleplaceholder"请搜索选择账户标签"><…

网络基础-ARP协议

ARP&#xff08;Address Resolution Protocol&#xff0c;地址解析协议&#xff09;是一种用于将IP地址映射到物理MAC地址的协议&#xff1b;在计算机网络中&#xff0c;每个设备都有一个唯一的MAC地址&#xff0c;用于在局域网内进行数据通信。而IP地址则是用于在更大范围的网…

每日一题——力扣面试题 17.04. 消失的数字

题目链接&#xff1a;https://leetcode.cn/problems/missing-number-lcci/description/ 菜鸡做法&#xff1a; #include <stdlib.h> // 包含标准库头文件&#xff0c;用于内存分配等功能// 函数定义&#xff1a;寻找缺失的数字 int missingNumber(int* nums, int numsSi…

基于二维CS-SCHT变换和扩频方法的彩色图像水印嵌入和提取算法matlab仿真

目录 1.算法运行效果图预览 2.算法运行软件版本 3.部分核心程序 4.算法理论概述 5.算法完整程序工程 1.算法运行效果图预览 2.算法运行软件版本 matlab2022a 3.部分核心程序 ............................................................. % figure; % subplot(121);…

Visual Studio C++ 2019进行安装

Visual Studio C 2019进行下载安装 链接&#xff1a;https://my.visualstudio.com/Downloads?qvisual%20studio%202017&wt.mc_idomsftvscom~older-downloads

SwiGLU激活函数

SwiGLU激活函数已经成为LLM的标配了。它是GLU的变体&#xff0c;公式如下&#xff1a; SwiGLU ⁡ ( x , W , V , b , c , β ) Swish ⁡ β ( x W b ) ⊗ ( x V c ) \operatorname{SwiGLU}(x, W, V, b, c, \beta)\operatorname{Swish}_\beta(x Wb) \otimes(x Vc) SwiGLU(x,…

开源免费的发票识别OCR应用:Invoice

Invoice&#xff1a;轻松识别&#xff0c;发票电子化扫描烦恼消- 精选真开源&#xff0c;释放新价值。 概览 Invoice 是github社区上一个采用开源许可协议发布的增值税发票光学字符识别&#xff08;OCR&#xff09;解决方案项目。该项目不仅集成了预训练的高级模型&#xff0c…

Python | Leetcode Python题解之第78题子集

题目&#xff1a; 题解&#xff1a; class Solution:def subsets(self, nums: List[int]) -> List[List[int]]:self.res []self.backtrack([], 0, nums)return self.resdef backtrack(self, sol, index, nums):self.res.append(sol)for i in range(index, len(nums)):self…

Jenkins +git +web(vue) centos8.5 实战打包部署 运维系列二

1新建一个工程 #cat qy.sh #!/bin/bash cd /data/.jenkins/workspace/web rm -rf dist/ rm -rf qysupweb.tar.gz npm run build tar -czvf qysupweb.tar.gz dist/ #点击构建

基于控制工程的牛鞭效应simulink建模与仿真

目录 1.程序功能描述 2.测试软件版本以及运行结果展示 3.核心程序 4.本算法原理 5.完整程序 1.程序功能描述 牛鞭效应”对供应链性能和绩效产生了严重的影响。基于控制理论建立了多级线性供应链的模型&#xff0c;分别利用噪声带宽和Matlab&#xff0f;Simulink对一个可扩…

平航杯复现

简单介绍及前期操作 esxi镜像挂载是一个新的创新点 就根据官方的wp进行挂载就可以了&#xff0c;后面差不多常规的服务器取证操作&#xff0c;然后服务器和计算机&#xff0c;u盘取证都有点联系&#xff0c;还是需要队友配合好一点 配置网段我的建议是把本机的配置改一下&am…

box-decoration-break 使用介绍

box-decoration-break属性的使用 一、定义 box-decoration-break是CSS片段模块&#xff08;CSS Fragmentation Module Level 3&#xff09;中的一个属性&#xff0c;主要用于指定背景&#xff08;background&#xff09;、内边距&#xff08;padding&#xff09;、边框&#…

低代码在物品领用领域数字化转型的案例分析

办公用品管理数字化不仅代表了企业管理模式的革新&#xff0c;更是提升运营效率和成本控制的关键举措。通过数字化手段&#xff0c;企业能够实现采购、库存、领用等流程的自动化和智能化管理&#xff0c;大幅减少人工操作&#xff0c;提高处理速度&#xff0c;确保数据的准确性…

ruoyi-nbcio 基于flowable规则的多重并发网关的任意跳转

更多ruoyi-nbcio功能请看演示系统 gitee源代码地址 前后端代码&#xff1a; https://gitee.com/nbacheng/ruoyi-nbcio 演示地址&#xff1a;RuoYi-Nbcio后台管理系统 http://218.75.87.38:9666/ 更多nbcio-boot功能请看演示系统 gitee源代码地址 后端代码&#xff1a; h…

如何使用Python下载哔哩哔哩(Bilibili)视频字幕

在本文中&#xff0c;我将向大家展示如何使用Python下载哔哩哔哩&#xff08;Bilibili&#xff09;视频的字幕。通过这个方法&#xff0c;你可以轻松地获取你喜欢的视频的字幕文件&#xff0c;方便学习和交流。 准备工作 在开始之前&#xff0c;我们需要安装一些必要的库&…

熟悉Redis吗,那Redis的过期键删除策略是什么

对于Redis&#xff0c;我们业务开发一般都只关心Redis键值对的查询、修改操作&#xff0c;可能因为懒或者只想能用就行&#xff0c;呵呵。很少关心键值对存储在什么地方、键值对过期了会怎么样、Redis有没什么策略处理过期的键、Redis处理过期键又有什么作用&#xff1f;但这些…

固定资产管理系统参考论文(论文 + 源码)

【免费】固定资产管理系统.zip资源-CSDN文库https://download.csdn.net/download/JW_559/89282536 固定资产管理系统 摘 要 随着计算机信息技术的发展以及对资产、设备的管理科学化、合理化的高要求&#xff0c;利用计算机实现设备及资产的信息化管理已经显得非常重要。 固…