python for 循环中获取index 索引的方式有2种1、自定义索引index = 0 for c in "thezenofpython": print(index, c) index += 1 >>> 0 t 1 h 2 e 3 z 4 ...
確定! 回上一頁