1.global关键字 引用全局变量,在局部全局变量改变,也会改变,global相当于指针,将地址指向全局变量的name name='littlepage' def littepage(): global name name='LargePage' return name print(littepage()) print(name) 2.函数递归————举例,阶乘factorial def factorial(x): if(x==1):return x else:return x*factori…