python试题-以下代码运行结果是什么

counter = 1
def doLotsOfStuff():
	global counter
	for i in (1, 2, 3):
		counter += 1

doLotsOfStuff()
print counter

网友评论0