通过list中值得名称查询索引号

>>> a = ['www','iplaypython','com']
>>> a.index('iplaypython')

posted on 2018-12-06 10:44  上山打老虎下山采蘑菇  阅读(915)  评论(0编辑  收藏  举报

导航