作用域与 global — 计算机填空题
题目
阅读以下 Python 代码:
score = 50
def outer():
score = 10
def inner():
____ score
score = score + 5
inner()
return score
print(outer())
print(score)
第一空应填写关键字 ____(使 inner 能修改外层函数 outer 的局部变量 score);程序运行后,第一行输出为 ____,第二行输出为 ____。