Browse Source

冗長な記述を修正

btc-sounds
みてるぞ 11 months ago
parent
commit
25bbbfc9b8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common_module.py

+ 1
- 1
common_module.py View File

@@ -8,7 +8,7 @@ class CommonModule:


@classmethod @classmethod
def len_by_full (cls, string: str) -> float: def len_by_full (cls, string: str) -> float:
return sum ([1 if cls.is_wide (c) else .5 for c in string])
return sum (1 if cls.is_wide (c) else .5 for c in string)


@classmethod @classmethod
def index_by_f2c (cls, string: str, index: float) -> int: def index_by_f2c (cls, string: str, index: float) -> int:


Loading…
Cancel
Save