Iterate through two lists, check for matches and then rename
问题 Ok, so I have two lists; one is a list of song titles, the other is a list of files that is generated by running os.listdir() , which will be song mp3 files. UPDATED songs = ['The Prediction', 'Life We Chose', 'Nastradamus', 'Some of Us Have Angels', 'Project Windows', 'Come Get Me', "Shoot 'em Up", 'Last Words', 'Family', 'God Love Us', 'Quiet Niggas', 'Big Girl', 'New World', 'You Owe Me', 'The Outcome'] Each song is unicode filenames = ['Nas - Big Girl.mp3', 'Nas - Come Get Me.mp3', 'Nas -