How to validate URL in python?

前端 未结 0 1912

I wrote this python code to open sockets but I can\'t figure out how to validate the URL

inp = input(\'Enter a URL: \')
ipt = inp.split(\'/\')
inu = ipt[2]

m         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题