我正在尝试从专辑中获取曲目列表,并为给定的曲目获取所有匹配的曲目。我已经在下面提供了示例,请问如何在Python中处理?似乎difflib.get_close_matches仅适用于单词而不是句子。
示例:(查找包含字符串“Around the world”的任何内容)
示例:(查找包含字符串“Around the world”的任何内容)
tracks = ['Around The World (La La La La La) (Radio Version)', 'Around The World (La La La La La) (Alternative Radio Version)', 'Around The World (La La La La La) (Acoustic Mix)', 'Around The World (La La La La La) (Rucegsegger#Wittwer Club Mix)', 'World In Motion','My Heart Beats Like A Drum (Dam Dam Dam)','Thinking Of You','Why Oh Why','Mistake No. 2','With You','Love Is Blind','Lonesome Suite','Let Me Come & Let Me Go']
输出:
Around The World (La La La La La) (Radio Version)
Around The World (La La La La La) (Alternative Radio Version)
Around The World (La La La La La) (Acoustic Mix)
Around The World (La La La La La) (Rüegsegger#Wittwer Club Mix)