#Python tip# list遍历
使用for循环遍历list元素,同时还需要元素index的做法:
aa = ['a', 'b', 'c']
for i, char in enumerate(aa):
# i is the index of char in the list aa
print(i, char)
No professional has all the methods memorized, which is why understanding how to use documentation and find answers is so important. Gaining a strong grasp of the foundations of programming will allow you to use those foundations to use documentation to build so much more than so