📜  如果子字符串不在字符串 python 代码示例中

📅  最后修改于: 2022-03-11 14:45:46.332000             🧑  作者: Mango

代码示例6
str = '£35,000 per year'
# check for '£' character in the string
'£' not in str
# >> False
'£' in str
# >> True