logo
Loading...

出現AttributeError: 'Response' object has no attribute 'txet'錯誤 - Cupoy

寫法跟範例解答一樣,不知道為甚麼會有error (範例是可以正常讀取的)可以請老師幫我看一下是什麼出...

出現AttributeError: 'Response' object has no attribute 'txet'錯誤

2020/02/28 下午 04:10
Python網路爬蟲討論版
觀看數:20
回答數:1
收藏數:0

寫法跟範例解答一樣,不知道為甚麼會有error (範例是可以正常讀取的)

可以請老師幫我看一下是什麼出錯了嗎?

我有嘗試過 pip install requests --upgrade

但沒有用,謝謝><

import requests

r=requests.get('https://cat-fact.herokuapp.com/facts')

回答列表

  • 2020/02/28 下午 04:22
    張維元 (WeiYuan)
    贊同數:2
    不贊同數:0
    留言數:2

    那個,你拼錯字了 txet => text!