Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何访问imageCaptionATNewsItem 对象的字段值?
imageCaption
我试过news_item_obj.getField('imageCaption')了,但结果总是None。
news_item_obj.getField('imageCaption')
None
您只得到字段本身,而不是值。只需使用访问器:
news_item_obj.getImageCaption()