社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
私信  •  关注

Chetan Vashisth

Chetan Vashisth 最近创建的主题
Chetan Vashisth 最近回复了
7 年前
回复了 Chetan Vashisth 创建的主题 » 如何使用用于python的Wikipedia API获取图像标题

尝试:

如果您正在遍历所有图像的url,则可以尝试

for i in wiki.images:
    i.split('/')[-1]  # -1 because the name is at the last part of the url

所以上面的代码会给你图像名。

希望这有帮助。。。