题解 | #正则查找网址#
正则查找网址
https://www.nowcoder.com/practice/d22cc21332c24d7ea1dae179025b8cf5
import sys import re c=input() a=re.compile(r'https://(\w)+') b=a.search(c) d=str(b.group()) print((0,len(d)))
正则查找网址
https://www.nowcoder.com/practice/d22cc21332c24d7ea1dae179025b8cf5
import sys import re c=input() a=re.compile(r'https://(\w)+') b=a.search(c) d=str(b.group()) print((0,len(d)))
相关推荐