查找列表中的第一个元素和索引匹配条件考虑这个简单的例子 mylist = [-1,-2,3,4,5,6] for idx, el in enumerate(mylist): if el > 0: myid ...2024-06-26 已阅读: n次