關(guān)于python問題
我在練習(xí)時(shí)候發(fā)現(xiàn)這一行代碼可以用
http?=?urllib3.PoolManager() file?=?http.requst('get',url) file?=?file.data.decode()
但是下面這一行卻不行
file?=http.requst('get',url).data.decode()
python不是以簡潔著稱嗎?,這種情況在python語法里應(yīng)該怎么實(shí)現(xiàn)
我在練習(xí)時(shí)候發(fā)現(xiàn)這一行代碼可以用
http?=?urllib3.PoolManager() file?=?http.requst('get',url) file?=?file.data.decode()
但是下面這一行卻不行
file?=http.requst('get',url).data.decode()
python不是以簡潔著稱嗎?,這種情況在python語法里應(yīng)該怎么實(shí)現(xiàn)
2018-10-23
舉報(bào)
2018-11-11
我試了下可以?。╬ython3)