判断下列程序输出的x的值是?(1),y的值是(2)x = "global"def foo():global xy = "local"x = x * 2print(x)print(y)foo()
查看答案
x = "global"def foo():x = x * 2print(x)foo()
A. 对
B. 错
def foo():y = "local"foo()print(y)
A. 对
B. 错
x=10defouter():globalxx="local"definner():nonlocalxx="nonlocal"print("inner:",x)inner()print("outer:",x)outer()
A. 对
B. 错
当归的功效是()
A. 补血活血,行气止痛
B. 补血活血,润肠止痛
C. 补血活血,滋阴润肺
D. 补血活血,凉血止痛
E. 补血活血,补精益髓