Skip to content

Instantly share code, notes, and snippets.

View tigerwang202's full-sized avatar

Wang tigerwang202

  • Embedded development hobbyist
  • Madagascar
View GitHub Profile
@tigerwang202
tigerwang202 / addlrc.py
Last active November 7, 2015 13:47 — forked from scturtle/addlrc.py
import eyed3
import re
import glob
def get_lyric(lrc):
text = open(lrc).read()
text = re.sub(r'(?:\[.*\])+', '', text).strip()
text = map(lambda l: l.strip(), text.split('\n'))
ans = []
for l in text: