method 2:
type each command
import urllib.request
x = urllib.request.urlopen("http://www.google.com/")
print(x.read())
https://www.youtube.com/watch?v=5GzVNi0oTxQ
2.type line by line as below code
from urllib.request import urlopen
html = urlopen("http://www.google.com/")
print(html)
print(html.read())
http://stackoverflow.com/questions/22676/how-do-i-download-a-file-over-http-using-python
reference:
[book] A Brain-Friendly Guide, Paul Barry && David Griffths
reference:
[book] A Brain-Friendly Guide, Paul Barry && David Griffths
0 意見:
張貼留言