A. def f1(): for n in range(5): print("Python语言") B. def f2(): for n in range(5): print("Python语言") return "学习啦" C. def f3(a="Python语言"): for n in range(5): print(a) D. def f4(a="Python语言"): for n in range(5): print(a) return "学习啦"
A. 函数内的区域,包括局部变量和参数 B. 外层嵌套函数区域 C. 全局作用域 D. 内建作用域
A. def B. global C. nonlocal D. lambda
A. date B. time C. clock D. calendar
A. random.randint(1,100) B. random.random(1,100) C. random.uniform(1,100) D. random.randrange(1,100,1)