• 2022-06-09 问题

    以下参数传递正确的是: A: def score(mid_score, end_score): ……score(88, 79) B: def score( *,mid_score, end_score, mid_rate=0.4): ……score(88, 79) C: def score( *,mid_score, end_score, mid_rate=0.4): ……score(end_score = 79, mid_score = 88) D: def score( *,mid_score, end_score, mid_rate=0.4): ……score(mid_score = 88, end_score = 79,0.5)

    以下参数传递正确的是: A: def score(mid_score, end_score): ……score(88, 79) B: def score( *,mid_score, end_score, mid_rate=0.4): ……score(88, 79) C: def score( *,mid_score, end_score, mid_rate=0.4): ……score(end_score = 79, mid_score = 88) D: def score( *,mid_score, end_score, mid_rate=0.4): ……score(mid_score = 88, end_score = 79,0.5)

  • 2021-04-14 问题

    下列语句中,正确的是? def f(a,b,*):;;|def f(a=0,b):|def f(a,b==0):;|def f(a,*b):

    下列语句中,正确的是? def f(a,b,*):;;|def f(a=0,b):|def f(a,b==0):;|def f(a,*b):

  • 2022-07-24 问题

    ‎下面代码的输出结果是()。​‎def f(): x=198 print(x) x=9 f() print(x)​ A: 198 198 B: 198 9 C: 9 198 D: 出错

    ‎下面代码的输出结果是()。​‎def f(): x=198 print(x) x=9 f() print(x)​ A: 198 198 B: 198 9 C: 9 198 D: 出错

  • 2022-06-06 问题

    下列语句中,正确的是 A: def f(a<0,b): B: def f(a,b==0): C: def f(a,b,*): D: def f(a,*b):

    下列语句中,正确的是 A: def f(a<0,b): B: def f(a,b==0): C: def f(a,b,*): D: def f(a,*b):

  • 2022-07-24 问题

    ‌下面代码的输出结果是()。‍‌def f(): global x x=198 print(x) x=9 f() print(x)‍ A: 198 198 B: 198 9 C: 9 198 D: 出错

    ‌下面代码的输出结果是()。‍‌def f(): global x x=198 print(x) x=9 f() print(x)‍ A: 198 198 B: 198 9 C: 9 198 D: 出错

  • 2022-06-09 问题

    函数定义格式正确的是() A: def f(n) B: def f(n): C: def (n): D: def fn:

    函数定义格式正确的是() A: def f(n) B: def f(n): C: def (n): D: def fn:

  • 2022-06-03 问题

    已知△ABC∽△DEF,S△ABC∶S△DEF=9∶1,那么对应边=________.

    已知△ABC∽△DEF,S△ABC∶S△DEF=9∶1,那么对应边=________.

  • 2021-04-14 问题

    【单选题】以下程序关于全局变量a的使用不正确的是() A. a=8 def f(): print(a) f() print(a) B. a=8 def f(): print(a) a=a*10 print(a) f() print(a) C. a=8 def f(): global a a=40 print(a) a=a*10 print(a) f() print(a) D. a=8 def f( 答

    【单选题】以下程序关于全局变量a的使用不正确的是() A. a=8 def f(): print(a) f() print(a) B. a=8 def f(): print(a) a=a*10 print(a) f() print(a) C. a=8 def f(): global a a=40 print(a) a=a*10 print(a) f() print(a) D. a=8 def f( 答

  • 2021-04-14 问题

    下列程序的输出结果是________。 def f(a, b) : return a + b def main() : a = 5 b = 6 print(f(a, b)) main()

    下列程序的输出结果是________。 def f(a, b) : return a + b def main() : a = 5 b = 6 print(f(a, b)) main()

  • 2022-06-30 问题

    Define a function as below with f as the function parameter,def test(f, a, b): print(f(a, b))Which of the following options will be the result of test((lambda x,y: x ** 3 + y), 2, 3)? A: 8 B: 9 C: 10 D: 11

    Define a function as below with f as the function parameter,def test(f, a, b): print(f(a, b))Which of the following options will be the result of test((lambda x,y: x ** 3 + y), 2, 3)? A: 8 B: 9 C: 10 D: 11

  • 1 2 3 4 5 6 7 8 9 10