名词解释:[tex=6.643x1.0]A+vLae9AdQDkAawkvUJB9zuomXC+eMv1ChL7Oi7UfsQ=[/tex]
举一反三
- 已知函数定义def demo(a=1,**b):return b则demo(2,x=7,y=8,z=9)的返回值是什么? A: 2 B: (x:7,y:8,z:9) C: (7, 8, 9) D: {'x':7, 'y':8, 'z':9}
- set1 = {x for x in range(10) if x%2!=0} set1.remove(1) print(set1) 以上代码的运行结果为? A: {1, 3, 5, 7, 9} B: {1, 3, 5, 7} C: {3, 5, 7, 9} D: {3, 5, 7}
- set1 = {x for x in range(10) if x%2!=0} print(set1) 以上代码的运行结果为? A: {1, 3, 5, 7, 9} B: {1, 3, 5, 7} C: {3, 5, 7, 9} D: {3, 5, 7}
- 设int a=9,b=8,c=7,x=1; ,则执行语句 if(a>7)if(b>8)if(c>9)x=2;else x=3;后x的值是( )。
- 设int a = 9,b = 8,c = 7, x = 1;则执行语句后x的值是: if (a>7) if (b>8) if (c>9) x=2 ; else x = 3;