completed 65%~

博客提到进行了一些测试,并添加了Music。虽表述简短,但关键信息围绕测试和添加Music展开,与信息技术领域的测试工作相关。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

有点小晚了 肯定是睡着了

做了写测试 加了Music

在这个脚本基础上优化 @echo off setlocal enabledelayedexpansion :: ---------------------------- :: 基础配置(可修改区域) :: ---------------------------- set "UV=F:\Software\keil5\core\UV4\UV4.exe" set "project_root=%~dp0Multi_project" :: 工程根目录 :: ---------------------------- :: 命令行参数处理 :: ---------------------------- if not "%~1"=="" ( set "TARGET_PROJECT=%~1" call :validate_project call :compile exit /b %errorlevel% ) :: ---------------------------- :: 自动检测所有子工程 :: ---------------------------- echo Scanning projects in: %project_root% set "project_count=0" for /d %%a in ("%project_root%\*") do ( set /a "project_count+=1" set "project_name=%%~nxa" set "project_list=!project_list! !project_name!" ) echo Found %project_count% project(s) :: ---------------------------- :: 主编译流程 :: ---------------------------- for %%a in (%project_list%) do ( set "TARGET_PROJECT=%%a" call :compile if errorlevel 1 ( echo [ERROR] Build failed for: %%a exit /b 1 ) ) exit /b 0 :: ---------------------------- :: 子程序:工程验证 :: ---------------------------- :validate_project if not exist "%project_root%\%TARGET_PROJECT%" ( echo [ERROR] Project not exist: %TARGET_PROJECT% exit /b 2 ) if not exist "%project_root%\%TARGET_PROJECT%\%TARGET_PROJECT%_MCU.uvmpw" ( echo [ERROR] Project file missing: %TARGET_PROJECT%_MCU.uvmpw exit /b 3 ) exit /b 0 :: ---------------------------- :: 子程序:编译流程 :: ---------------------------- :compile echo. echo [INFO] Building project: %TARGET_PROJECT% :: 路径配置(自动生成带时间戳的日志文件) set "build_log=%~dp0logs\%TARGET_PROJECT%_%date:~0,4%%date:~5,2%%date:~8,2%_%time:~0,2%%time:~3,2%.log" set "uvproj_path=%project_root%\%TARGET_PROJECT%\%TARGET_PROJECT%_MCU.uvmpw" :: 清理并创建日志目录 if not exist "%~dp0logs\" md "%~dp0logs" break > "%build_log%" :: 执行编译命令 echo Project file: %uvproj_path% "%UV%" -j0 -r "%uvproj_path%" -o "%build_log%" :: ---------------------------- :: 错误检查 :: ---------------------------- if not exist "%build_log%" ( echo [ERROR] Log file missing: %build_log% exit /b 4 ) type "%build_log%" | findstr /i /r "\<Error\>" "\<error(s)\>" "\<错误\>" if %errorlevel% equ 0 ( echo [ERROR] Compilation failed: %TARGET_PROJECT% exit /b 1 ) echo [SUCCESS] Build completed: %TARGET_PROJECT% exit /b 0
03-11
出现这种问题,请您优化一下代码 > & D:/Python/python.exe c:/Users/Administrator/Desktop/py/test1.py Traceback (most recent call last): File "D:\Python\Lib\site-packages\selenium\webdriver\common\driver_finder.py", line 67, in _binary_paths output = SeleniumManager().binary_paths(self._to_args()) File "D:\Python\Lib\site-packages\selenium\webdriver\common\selenium_manager.py", line 54, in binary_paths return self._run(args) ~~~~~~~~~^^^^^^ File "D:\Python\Lib\site-packages\selenium\webdriver\common\selenium_manager.py", line 128, in _run raise WebDriverException( f"Unsuccessful command executed: {command}; code: {completed_proc.returncode}\n{result}\n{stderr}" ) selenium.common.exceptions.WebDriverException: Message: Unsuccessful command executed: D:\Python\Lib\site-packages\selenium\webdriver\common\windows\selenium-manager.exe --browser chrome --language-binding python --output json; code: 65 {'code': 65, 'message': 'error sending request for url (https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json)', 'driver_path': '', 'browser_path': ''} The above exception was the direct cause of the following exception: Traceback (most recent call last): File "c:\Users\Administrator\Desktop\py\test1.py", line 13, in <module> driver = webdriver.Chrome() File "D:\Python\Lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 47, in __init__ super().__init__( ~~~~~~~~~~~~~~~~^ browser_name=DesiredCapabilities.CHROME["browserName"], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... keep_alive=keep_alive, ^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "D:\Python\Lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 53, in __init__ if finder.get_browser_path(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "D:\Python\Lib\site-packages\selenium\webdriver\common\driver_finder.py", line 47, in get_browser_path return self._binary_paths()["browser_path"] ~~~~~~~~~~~~~~~~~~^^ File "D:\Python\Lib\site-packages\selenium\webdriver\common\driver_finder.py", line 78, in _binary_paths raise NoSuchDriverException(msg) from err selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain driver for chrome; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location
07-27
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值