Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 206 Bytes

the-in-operator.md

File metadata and controls

8 lines (7 loc) · 206 Bytes

单词in是一个布尔运算符,操作两个字符串,如果第一个字符串是第二个字符串的子串,则返回True。

>>> 'a' in 'banana'
True
>>> 'seed' in 'banana'
False