i = 0def myFun(): global i i=i +1 return i
myFun()
==========================
accumulate( )
total = 0def accumulate(): global total total += 1 return total
posted on 2016-04-05 08:57 gisai 阅读(629) 评论(0) 编辑 收藏 举报