refactor: 优化代码格式,调整多个文件中的换行和缩进

This commit is contained in:
Your Name committed 2026-01-03 19:18:57 +08:00
1 parent 95b4517bdd
commit d100ac0a66
11 files changed
+91 -40

No files matched your search

+6 -5
View File
@@ -1,12 +1,13 @@
import sys
path = sys.argv[1]
start = int(sys.argv[2])
end = int(sys.argv[3])
with open(path, 'r', encoding='utf-8') as f:
with open(path, "r", encoding="utf-8") as f:
lines = f.readlines()
for i in range(start, end+1):
idx = i-1
for i in range(start, end + 1):
idx = i - 1
if 0 <= idx < len(lines):
line = lines[idx].rstrip('\n')
line = lines[idx].rstrip("\n")
print(f"{i:4}: {line}")
print(' repr:', repr(lines[idx]))
print(" repr:", repr(lines[idx]))