python判断字符串中是否包含子字符串

s = '1234问沃尔沃434'
if s.find('沃尔沃') != -1:
    print('存在')
else:
    print('不存在')

 

相关文章:

  • 2023-03-11
  • 2021-11-21
  • 2022-01-08
  • 2022-12-23
  • 2021-08-31
  • 2022-12-23
猜你喜欢
  • 2022-01-17
  • 2022-12-23
  • 2022-01-07
  • 2021-09-17
  • 2021-05-13
  • 2021-06-04
相关资源
相似解决方案