1.in運算子:可以利用它來檢查字串中是否有我們指定的字串在其中,如下。
>>>
"go"
in
"good"
True
2.not in運算子:與in運算子相反,可以利用它來檢查字串中是否沒有我們指定的字串在其中,如下。
not
False
Copyright ©2025 All rights reserved | This template is made with by Colorlib