Signed-off-by: 豆苗126 <25321937@qq.com>
This commit is contained in:
豆苗126 2023-06-02 00:58:29 +00:00 committed by Gitee
parent 66e54a00aa
commit d2004dd927
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
# enumerate 可以加索引
fruit = ["apple",'orange',"banana","balabala"]
fruit = ["apple",'orange1',"banana","balabala"]
for i,x in enumerate(fruit):
print(i,x)