2014年4月3日
摘要: 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 .. 阅读全文
posted @ 2014-04-03 17:42 bluecoffee 阅读(462) 评论(0) 推荐(0) 编辑