import re

paths = open("paths.txt", "w+")
file = open(r"C:\Users\Administrator\Desktop\新建文件夹 (6)\cat.svg")

regex = re.compile(r'.*?\sd="(.*?)".*?') 

while 1:
    line = file.readline()
    if not line:
        break
    res = regex.findall(line)    
    if(res != None):
      for g in res:
        print(g+"\n")
        paths.write(g+"\n")

file.close()
paths.close()

 

相关文章:

  • 2021-11-26
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-16
  • 2023-02-08
  • 2021-08-23
  • 2021-07-05
  • 2022-12-23
  • 2021-12-08
  • 2022-01-21
相关资源
相似解决方案