Skip to content

Instantly share code, notes, and snippets.

@Celia-code
Created May 1, 2020 03:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Celia-code/41c41b015ef45ca604f7de50d14c0126 to your computer and use it in GitHub Desktop.
Save Celia-code/41c41b015ef45ca604f7de50d14c0126 to your computer and use it in GitHub Desktop.
列表
fruits = ['apple','lemon','kiwi']
index = 0
length = len(fruits)
while index < length:
fruit = fruits[index]
index += 1
print(fruit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment