Browse Source

'common_module.py' を更新

btc-sounds
みてるぞ 9 months ago
parent
commit
ea2d86e9a7
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      common_module.py

+ 3
- 3
common_module.py View File

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

@classmethod
def index_by_f2c (cls, string: str, index: float) -> int:
i = 0
work = ''
i: int = 0
work: str = ''
for c in string:
work += c
if cls.len_by_full (work) > index:
@@ -25,7 +25,7 @@ class CommonModule:

@classmethod
def mid_by_full (cls, string: str, start: float, length: float) -> str:
trimmed_left = string[cls.index_by_f2c (string, start):]
trimmed_left: str = string[cls.index_by_f2c (string, start):]

return trimmed_left[:cls.index_by_f2c (trimmed_left, length)]


Loading…
Cancel
Save