【发布时间】:2016-03-19 09:08:35
【问题描述】:
在 Python 3 中,你将如何处理标题标签之间的字符串,例如,打印 Hello, world!,输出 <h1>Hello, world!</h1>:
import urllib
from urllib.request import urlopen
#example URL that includes an <h> tag: http://www.hobo-web.co.uk/headers/
userAddress = input("Enter a website URL: ")
webPage = urllib.request.urlopen(userAddress)
list = []
while webPage != "":
webPage.read()
list.append()
【问题讨论】:
标签: python html list python-3.x append