ja-test-001 / split.py
team-nave's picture
Adding source files
64b03f0
raw
history blame contribute delete
385 Bytes
import sys
from textformatting import ssplit
from tqdm.auto import tqdm
import neologdn
input = sys.stdin.readline
MAX_LINES=int(sys.argv[1])
def main():
line = 'start'
bar = tqdm(total = MAX_LINES)
while line:
line = neologdn.normalize(input().rstrip())
[print(s) for s in ssplit(line) ]
bar.update(1)
if __name__ == "__main__":
main()