摘要: def function(x,y): if x == 0: return 0 if y == 0: return 1 return function(x,y-1)*x while(1): number = int(input('请输入x的值:')) y = int(input('请输入y的值:')) print... 阅读全文
posted @ 2018-07-31 20:34 RamboBai 阅读(6517) 评论(0) 推荐(0) 编辑
摘要: >>> count = 4 >>> def func(): count = count * 10 print(count) >>> func() Traceback (most recent call last): File "<pyshell#20>", line 1, in <module> f 阅读全文
posted @ 2018-07-31 07:57 RamboBai 阅读(183) 评论(0) 推荐(0) 编辑