sna*_*ile 288 python string substring
我有两个字符串,我想检查第一个是否是另一个的子字符串.Python有这样的内置功能吗?
And*_*are 469
尝试使用in这样:
>>> x = 'hello'
>>> y = 'll'
>>> y in x
True
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
412834 次 |
| 最近记录: |