以下程序的输出结果是( )。(提示:ord(‘a’)==97) list_a=[1,2,3,4,5,’a’] print(list_a[1],list_a[4])
举一反三
- 以下程序的输出结果是()。(提示:ord("a")=97)list_demo=[1,2,3,4,5,'a','b']print(list_demo[1],list_demo[5])
- 下面代码的输出结果是() vlist = list(range(5)) print() A: [0, 1, 2, 3, 4] B: 0;1;2;3;4; C: 0,1,2,3,4, D: 0 1 2 3 4
- 以下程序的输出结果是:list = ["1","3" ,"5"]def app(x):list. append(x)app( "7" )print( list)} A: ['1','3','5'] B: ['1','3','5','7'] C: ['7'] D: "1,3,5,7"
- 下面代码的输出结果是vlist = list(range(5))for e in vlist: print(e,end=",") A: 0 1 2 3 4 B: 0,1,2,3,4, C: [0, 1, 2, 3, 4] D: 0;1;2;3;4;
- vlist = list(range(5))for e in vlist:print(e,end=",")上面代码的输出结果是( ) A: 0;1;2;3;4; B: 0 1 2 3 4 C: 0,1,2,3,4, D: [0, 1, 2, 3, 4]