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

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

原文地址:https://www.cnblogs.com/shida-liu/p/10075405.html