📜  python读取请求响应 - Python代码示例

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

代码示例2
import urllib.request
import time
def result_from_site(url_of_site):
    weburl = urllib.request.urlopen(url_of_site)
    return str(weburl.getcode())
print(result_from_site("https://www.linkedin.com/learning/learning-python/fetching-internet-data"))