📜  python 字符串不包含 - Python 代码示例

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

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