📌  相关文章
📜  使用python代码示例从css文件中获取所有类

📅  最后修改于: 2022-03-11 14:46:18.790000             🧑  作者: Mango

代码示例1
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')