Python2教程python文本 字符串开头或者结尾匹配 python文本 字符串开头或者结尾匹配 场景: 字符串开头或者结尾匹配,一般是使用在匹配文件类型或者url 一般使用startwith或者endwith >>> a='http://www.w3cschool.c... AI君 3年前 (2020-02-26) 58℃ 0喜欢