如题所述
你看一下怎么改
你的字符串中间少了一个逗号吧,你可以看下我写的
import rea = "http://231231", "https://4234923"for i in list(a):s = re.findall("(.+?):", i)if str(s[0]) == "https":print(i)else:pass
结果: