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



上一篇:Go中的make和new的区别
下一篇:go语言引用github包

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