radio-embed / ray-pad.txt
ffreemt
Update ray added in branch ray-enabled
63291d6
raw
history blame
207 Bytes
import os
import ray
from pathlib import Path
filename = "/home/mu2018/github/en-de-zh-txt/fangfang-en.txt"
lines = Path(filename).read_text("utf8").splitlines()
lst = [_.strip() for _ in linesif _.stip()]