for index, value in enumerate(list): print index, value 转载于:https://www.cnblogs.com/helloweworld/p/3819215.html