Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复代码样式和任务完成时回显 #349

Merged
merged 4 commits into from
Sep 18, 2024
Merged

Conversation

isHarryh
Copy link
Contributor

  1. e7c5241 移除了不自然的空格与空行;统一禁用了文件末尾空行。
  2. 04db23e 规范化了某些代码样式问题。例如:
    1. input 函数返回值无需经由 str 函数处理;
    2. 04db23e#diff-b10564ab7d2c520cdd0243874879fb0a782862c3c902ab535faabe57d5a505e1R53-R54 此处抛出的异常应使用 from 记为由原发异常导致;
    3. re.findall 函数传入的正则表达式字符串应有 r 修饰前缀;
    4. 在条件判断中,对变量是否为 True 的检验由 xxx == True 改为 xxx is True 可有更好的鲁棒性;
    5. 移除了某些不必要的分支。
  3. bada265 修复了不自然的任务完成时的回显。效果如下:
    • 修复前:before
    • 修复后:after
  4. 3d8acf2 添加了 requirements.txt 内缺失的 2 项依赖库;移除了 README.md 内的尾随空格。

@Samueli924 Samueli924 merged commit 60ba3a5 into Samueli924:main Sep 18, 2024
1 check failed
@Samueli924
Copy link
Owner

感谢帮助,已合并代码

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