通过成员运算符‘in’ 和 ‘not in’,我们可以确认一个值是否是另一个值的成员

print('me' in 'disappointment')#True
print('us' in 'disappointment')#False

 

相关文章:

  • 2022-12-23
  • 2021-06-26
  • 2021-05-07
  • 2021-07-09
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-01
相关资源
相似解决方案