以下程序的输出结果是: def fun1(): print("in fun1()") fun2()fun1()def fun2(): print("in fun2()") fun1()fun2()
A: 出错
B: 死循环
C: in fun1()
D: in fun1() in
fun2()
A: 出错
B: 死循环
C: in fun1()
D: in fun1() in
fun2()
举一反三
- 以下程序的输出结果是:( )。def fun1():print("in fun1()")fun2()fun1()def fun2():print("in fun2()")fun1()fun2() A: 死循环 B: in fun1()in fun2() C: 出错 D: in fun1()
- 以下程序的输出结果是( )def fun1():print("in fun1()")fun2()def fun2():print("in fun2()")fun1()fun1() A: in fun1() in fun2() B: in fun1() C: 死循环 D: 出错
- 以下程序的输出结果是: def fun1(): print(“in fun1()”) fun2() fun1() def fun2(): print(“in fun2()”) fun1() fun2()
- 下列程序的输出结果是___________。 x = 1 def fun: global x x = 2 fun print(x)
- 【单选题】下面的方法重载正确的是() A. int fun (int a, float b){} float fun(int a, float b){} B. float fun (int a, float b) {} float fun (int x, float y){} C. float fun (float a){} float fun(float a, float b){} D. float fun1 (int a, float b){} float fun2(int a ,float b){}