1 name=‘cat‘ 2 if ‘a‘ in name: 3 print(‘yes‘) 4 else: 5 print(‘no‘) 6
in的使用
python运算符
原文:https://www.cnblogs.com/wfl9310/p/8692826.html