fix: 改进代码
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
def truncate(text):
|
||||
if len(text) <= 3:
|
||||
return text
|
||||
return text[:3] + ">"
|
||||
return text[:3] + ">"
|
||||
|
||||
Reference in New Issue
Block a user