print(doc['cwbopendata']['dataset']['locations']['location']) 出現TypeError:list indices must be integars or slices,not錯誤
2020/02/24 05:08 下午
Python網路爬蟲討論版
皓文劉
觀看數:5
回答數:2
收藏數:0
xml
您好
想請問以下程式碼該如何修正?
print(doc['cwbopendata']['dataset']['locations']['location'])都能正常運行
但是加了第五層就不行
我應該注意什麼呢?
謝謝您