Skip to content

优化列表判空写法 - #3991

Merged
donghaiwang merged 8 commits into
OpenHUTB:mainfrom
wutong88yuyu:lane-assist-submission
Dec 19, 2025
Merged

donghaiwang merged 8 commits into
OpenHUTB:mainfrom
wutong88yuyu:lane-assist-submission

Conversation

@wutong88yuyu

Copy link
Copy Markdown
Contributor

修改概述:

修改的详细描述

  1. Python 规范建议:先导入标准库(如 os),再导入第三方库(如 numpy)。现在的顺序是乱的,所以修改了导入顺序
  2. 在 Python 里,判断列表不为空,不推荐用 len(list) > 0,而是直接用 if list:,所以修改了规范用法

经过了什么样的测试?

  1. 操作系统
  2. Python版本等

运行效果

动图、视频、截图等

2025-12-18.18-38-20.mp4

@donghaiwang
donghaiwang merged commit f620d86 into OpenHUTB:main Dec 19, 2025
1 check passed
sda-57 pushed a commit to sda-57/nn that referenced this pull request Dec 21, 2025
* 优化代理控制器逻辑

* 优化lane参数配置

* 优化world函数

* 优化main入口

* 添加上下文管理器支持

* 优化列表判空写法

* 修复 Lambda 表达式的冗余语法
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants