• 2022-06-09
    下面程序输出结果是​x, y, z = 10, 0, 0​​def f(x):​ y = 0​ global z​ for i in range(x):​ y += i​ z += i​ return y, z​​x = f(x)​print(x, y, z)​
    A: (45, 45) 45 45
    B: (0, 45) 0 45
    C: (45, 45) 0 45
    D: 10 0 45