This commit is contained in:
lededev
2022-04-14 01:21:02 +08:00
parent 828635e421
commit 499baf51fb
2 changed files with 5 additions and 16 deletions

View File

@@ -578,11 +578,6 @@ def delete_all_elements_in_str(string_delete: str, string: str):
return string
# print format空格填充对齐内容包含中文时的空格计算
def cnspace(v: str, n: int) -> int:
"""
print format空格填充对齐内容包含中文时的空格计算
"""
cw = 0
for c in v:
cw += 1 if category(c) in ('Lo',) else 0
return n - cw
return n - [category(c) for c in v].count('Lo')