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

fix: 修复Windows下的兼容性及一致性问题 #479

Merged
merged 1 commit into from
Jan 25, 2025

Conversation

neooier
Copy link
Contributor

@neooier neooier commented Jan 16, 2025

  • 在文件写入时添加换行符,确保数据格式一致性
  • 更新文件写入模式,添加 newline 参数以处理不同平台的换行符
  • 增加 Windows 系统下执行 node.js 脚本的兼容性处理

- 在文件写入时添加换行符,确保数据格式一致性
- 更新文件写入模式,添加 newline 参数以处理不同平台的换行符
- 增加 Windows 系统下执行 node.js 脚本的兼容性处理

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (3)

main.py:203

  • The 'print' statement already ends with a newline by default. The 'end' parameter is redundant.
print(f"c {province} {city} {school_name}", file=f,end='\n')

main.py:220

  • The 'print' statement already ends with a newline by default. The 'end' parameter is redundant.
print(oier.to_compress_format(), file=f,end='\n')

main.py:233

  • The 'print' statement already ends with a newline by default. The 'end' parameter is redundant.
print('{"sha512":"' + sha512 + '", "size":' + str(file_size) + "}", file=f)
@renbaoshuo renbaoshuo merged commit 5e0b58b into OIerDb-ng:master Jan 25, 2025
2 checks passed
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