Python语法学习笔记

For

# for执行时不允许修改array
for item in array:

# for执行时允许修改array
for item in array[:]:


你可能感兴趣的:(Python语法学习笔记)