mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
fix
This commit is contained in:
parent
7a502772fb
commit
0db3063829
@ -33,7 +33,7 @@ def _2_f(line, args):
|
|||||||
dumptime = Counter()
|
dumptime = Counter()
|
||||||
cntx = 1
|
cntx = 1
|
||||||
lastc = None
|
lastc = None
|
||||||
for c in line:
|
for c in list(line) + [0]:
|
||||||
if c != lastc:
|
if c != lastc:
|
||||||
dumptime[cntx] += 1
|
dumptime[cntx] += 1
|
||||||
lastc = c
|
lastc = c
|
||||||
|
Loading…
x
Reference in New Issue
Block a user