第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

name 'requests' is not defined

已經(jīng)在cmd pip install requests了 為什么還會報錯 服務器也啟動了

response?=?requests.get('https//:127.0.0.1:8000')
content?=?str(response.content,?encoding='utf-8')?#?==>?打印具體內(nèi)容
content_list?=?content.split('\n')?#?分行
for?line?in?content_list:
????if?'href'?in?line?and?'www'?in?line:
????????print(line.strip())


Traceback (most recent call last):

? File "D:\python\work\main.py", line 2, in <module>

? ? response = requests.get('https//:127.0.0.1:8000')

NameError: name 'requests' is not defined


正在回答

1 回答

先 import requests

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

name 'requests' is not defined

我要回答 關(guān)注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號