Skip to content

Instantly share code, notes, and snippets.

View YUChoe's full-sized avatar

Yong-uk Choe YUChoe

View GitHub Profile
for line in open('a.txt'):
# print line
a_id = line.find("sid:")
a_rev = line.find("rev:")
# print a_id
# print a_rev
print line[a_id+4:a_rev-2]
print line[a_rev+4:-3]
for line in open('b.txt'):