我有一个字符串,其中"LOCAL"一词多次出现.我使用该find()函数来搜索这个单词,但它也返回另一个单词"Locally".我怎样才能准确匹配"本地"一词?
find()
python string
python ×1
string ×1