📅  最后修改于: 2022-03-11 14:46:18.790000             🧑  作者: Mango
regex = r"(\.\w+.(.*?)\})" # add the class name after . toget related classes
classes = re.findall(regex, infile.read())
for entry in classes:
outfile.write(entry[0] + '\n')