link = external link:http://198.168.1.1
1.想要获取:之后的地址:http://198.168.1.1
print link[link.rfind(‘http:’):]
2.想要获取:前的数据:external link
print link[0:link.rfind(’:http’)]
link = external link:http://198.168.1.1
1.想要获取:之后的地址:http://198.168.1.1
print link[link.rfind(‘http:’):]
2.想要获取:前的数据:external link
print link[0:link.rfind(’:http’)]