摘要:
1 out_list = ['I am the outlist'] 2 3 def case1(): 4 # out_list is the global varible because it is not assigned in 5 # the function. It is only referenced 6 out_list.append('modified in case2') 7 print('in-case1 print: %s' % out_list) 8 return 9 10 11 def case2():12 # can .. 阅读全文