課程
/后端開發
/Python
/Python開發簡單爬蟲
最后一步 print 不知道怎么改正
2016-11-21
源自:Python開發簡單爬蟲 6-4
正在回答
而且你最后link.get_text()是點,不是逗號,望采納
eleven01234567 提問者
相同問題 請問如何解決的? 報錯為TypeError: 'NoneType' object is not callable
Python2和Python3的print是不同的,在Python2中,可以是print a,b,c,但在Python3中就會報錯,可以使用print(a,b,c)。
在Python3中,應該是print(link.name)
舉報
本教程帶您解開python爬蟲這門神奇技術的面紗
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2016-11-21
而且你最后link.get_text()是點,不是逗號,望采納
2018-10-05
相同問題 請問如何解決的? 報錯為TypeError: 'NoneType' object is not callable
2016-11-21
Python2和Python3的print是不同的,在Python2中,可以是print a,b,c,但在Python3中就會報錯,可以使用print(a,b,c)。
2016-11-21
在Python3中,應該是print(link.name)