以下程序输出结构为:a = 4b = 2c = a + bd = a - b输出:a, b, c, d在X-Program的屏幕上会显示:
A: 4262
B: 4,2,6,2
C: 4 2 6 2
D: a=4, b=2, c = 6, d = 2
A: 4262
B: 4,2,6,2
C: 4 2 6 2
D: a=4, b=2, c = 6, d = 2
举一反三
- [img=450x215]17de9157a033887.png[/img]在X-Program中运行该程序,屏幕上输出的结果是: A: 4262 B: 4,2,6,2 C: 4 2 6 2 D: a=4, b=2, c = 6, d = 2
- 若有a = [2*x for x in range(4)],语句print(a)输出为 A: [2, 4, 8,16] B: [2, 4, 6, 8] C: [1, 2, 4, 8] D: [0, 2, 4, 6]
- 函数\(y = {x^{ - 4}}{\rm{ + }}2{x^3} - 2x\)的导数为( ). A: \(4{x^3} + 6{x^2} - 2\) B: \( - 4{x^{ - 5}} + 6{x^2} - 2\) C: \( - 4{x^{ - 3}} + 6{x^2} - 2\) D: \( - 4{x^3} + 6{x^2} - 2\)
- 下面代码的输出结果是( )。 s=[4,3,6,2] t=sorted(s) print(s) print(t) A: [4, 3, 6, 2] [2, 3, 4, 6] B: [2, 3, 4, 6] [2, 3, 4, 6] C: [4, 3, 6, 2] [4, 3, 6, 2] D: [2, 3, 4, 6] [4, 3, 6, 2]
- 程序段如下:import jsondt = {'b':2,'c':4,'a':6}s1 = json.dumps(dt)print(s1)print函数输出的结果是( ) A: {"a":6,"b":2,"c":4} B: {"a":6,"b":2,"c":4} C: {2, 4, 6} D: {"b","c" ,"a"}