One - One Code All

Blog Content

python list求index便捷方法

Python   2012-04-27 08:07:02

python 列表取索引。

thing_index = thing_list.index(elem) if thing_list.count(elem) else -1



上一篇:python基础内置函数之zip
下一篇:python获取前一天或前N天的日期

The minute you think of giving up, think of the reason why you held on so long.