检查一个字符串是否有2个字符相邻
这个问题在这里已经有了答案:
你不能这样做吗?
the_string = "SS in a dark room"
print "SS" in the_string
## True
链接地址: http://www.djcxy.com/p/9379.html
上一篇: Check if a string has 2 characters next to each other
下一篇: How do I find out if one string is in another string in Python?