我有两个字符串,我想检查第一个字符串是否是另一个字符串的子字符串。 Python 有这样的内置功能吗?
尝试使用in像这样:
in
>>> x = 'hello' >>> y = 'll' >>> y in x True