当前位置:主页 > 软件编程 > Python代码 >
时间:2021-03-13 09:47:10 | 栏目:Python代码 | 点击:次
如下所示:
list = [‘a','b','c']
想用for循环输出list的元素以及对应的索引。
代码及结果如下: