response.read()只能執(zhí)行一次么?
老師的代碼中間我用了
print web2.getcode()
print len(web2.read())
print web2.read()
然后發(fā)現(xiàn)無法輸出網(wǎng)頁代碼
然后我就去掉了print len(web2.read())之后就可以輸出了,求問為什么
老師的代碼中間我用了
print web2.getcode()
print len(web2.read())
print web2.read()
然后發(fā)現(xiàn)無法輸出網(wǎng)頁代碼
然后我就去掉了print len(web2.read())之后就可以輸出了,求問為什么
2016-06-28
舉報(bào)
2016-06-28
可以輸出,可能是其他部分出問題。