sparkydogX / sparkydogx_blog_comment

Comments for https://sparkydogx.github.io
1 stars 0 forks source link

python及numpy笔记(一) | SparkydogX Blog #113

Open sparkydogX opened 5 years ago

sparkydogX commented 5 years ago

https://sparkydogx.github.io/2017/08/31/python-01/

enumerate()函数 enumerate是python内置的函数,用于循环迭代 返回值为一个元组 示例:123list = ['a', 'b', 'c']for index, text in enumerate(list,start=0): print index, text 运行结果为1230 a1 b2 c enum