方法如下:以后再整理

if str1 in str2:

  包含的话,True

if str1.find(str2)>=0:

  包含的话,返回第一次出现的位置,没有的话为负数

https://www.cnblogs.com/wq242424/p/6524697.html

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
猜你喜欢
  • 2021-07-31
  • 2022-01-07
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
相关资源
相似解决方案