#-----python 的问题是还要替换换行符 跟回车键..
#todox read file lines to list (not arr ,arr is tech word ,but list is life word)
def file2list(file) :
rplc_list = [] ;
for line in open(f, encoding="utf-8"):
if( len(trim(line))==0):
break
#endif
#print(line)
line=trim(line)
line=line.replace("\n", ""); line=line.replace("\r", "")
rplc_list.append(line)
#end for
return rplc_list