#starswitch

Python 字符串操作 starswitch() find() re.IGNORECASE replace() join()

检测开头&结尾开头:startswith()url='http://www.python.org'url.startswith('http')>>>True结尾:endswith()url='http://www.python.org'url.endswith('org')>>&g...