我被判刑了
我的球队是锦标赛中最好的球队。
作为创建函数的测试用例
def case_insensitivity(sentence):
return new_sentence
它检查给定句子中不区分大小写的单词,并将不区分大小写的单词替换为
XXX_
.
即
print(case_insensitivity('My team is the BeST team at the tournament'))
result
'My team is the XXX_ team at the tournament'
最好的方法是什么?
casefold()