Skip to content

修改可变参数保证代码安全性 - #144

Open
yuan-jia06 wants to merge 2 commits into
OpenHUTB:masterfrom
yuan-jia06:master
Open

yuan-jia06 wants to merge 2 commits into
OpenHUTB:masterfrom
yuan-jia06:master

Conversation

@yuan-jia06

Copy link
Copy Markdown

默认值改为不可变的None,函数开头把None转成空列表,使每次调用都使用独立的列表,符合 Python 最佳实践,消除后续维护中的隐患。

This branch has not been deployed

No deployments
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.

1 participant