Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
【Python】URLかどうか調べる方法
# coding: utf-8
from urlparse import urlparse
url = "http://www.yahoo.co.jp"
o = urlparse(url)
assert len(o.scheme) > 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment