def codefile_rep_chinese(self, path): file = CodeFile(path) chinese = file.list_chinese() file.replace_tag() # for s in chinese: # print(s) return chinese
def codefile_list_chinese(self, path): file = CodeFile(path) ret = file.list_chinese() return ret