📜  urllib - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:04.192000             🧑  作者: Mango

代码示例5
from urllib.request
import urlopen
story = urlopen('http://sixty-north.com/c/t.txt')
story_words = []

for line in story:
    line_words = line.split()
for word in line_words:
    story_words.append(word)
story.close()