644 B
644 B
id, title, challengeType, videoId, bilibiliIds, dashedName
id | title | challengeType | videoId | bilibiliIds | dashedName | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
5e7b9f0d0b6c005b0e76f075 | 網絡:在 Python 中使用 urllib | 11 | 7lFM1T_CxBs |
|
networking-using-urllib-in-python |
--question--
--text--
以下代碼的輸出將是什麼樣的?
import urllib.request
fhand = urllib.request.urlopen('http://data.pr4e.org/romeo.txt')
for line in fhand:
print(line.decode().strip())
--answers--
只有 “romeo.txt” 的內容。
“romeo.txt” 的 header 和內容。
“romeo.txt” 的 header、footer 和內容。
--video-solution--
1