fix: 改进代码

This commit is contained in:
2026-01-04 04:46:19 +08:00
parent b8b1c5e0d7
commit 1d0c87b5f7
34 changed files with 87 additions and 1570 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
def truncate(text):
if len(text) <= 3:
return text
return text[:3] + ">"
return text[:3] + ">"