小编Jik*_*ika的帖子

检查字符串是否等于单词列表的第一个字母

我对一项简单的任务感到困惑

用户会给我一个字符串,我的程序将检查该字符串是否等于单词列表的第一个字母(就像这个例子)

>>> html_attr = ["onerror","onload"]
>>> example_task(html_attr,"on")
["onerror","onload"]
>>> example_task(html_attr,"one")
["onerror"]
Run Code Online (Sandbox Code Playgroud)

我应该在这里使用 fuzzywuzzy 还是什么?

谢谢

python string text-processing matching

0
推荐指数
1
解决办法
969
查看次数

标签 统计

matching ×1

python ×1

string ×1

text-processing ×1