标签:style blog color io ar for div cti sp
1.the concept of List
2. how to define a method of myself
3.how to iterator a list
PS:
for Step 2,3. it is related with a key word: ‘def‘. we define a function like below.
def function name:
XXXXX
e.g. list iterator :
1 def print_lol(the_list): 2 for each in the_list: 3 if isinstance(each,list): 4 print_lol(each) 5 else: 6 print(each)
Learn Python From 'Head First Python' [1] : The List
标签:style blog color io ar for div cti sp
原文地址:http://www.cnblogs.com/zhuojiniao/p/3960548.html