21 |
17.已知s='python',请问s*2的值是?() A. python*2 B.'python'*2 C. pythonpython D. 'p |
84 |
2024-10-03 |
22 |
16.已知列表list=["鼠’,"牛’,"虎’,"兔’,"龙',蛇",马',羊","猴’,&quo |
22 |
2024-10-03 |
23 |
15.使用下列哪个命令可以把lst变成一个只有整数的列表?() Ist= [7,8,4,0,5,80,6.2,2.9,11,3] A. del Ist[6: |
49 |
2024-10-03 |
24 |
14.运行这段代码,终端区会打印什么内容?() a=10 if a > 5: a+=20 print(a) A.10 B.20 C.30 D.5 |
83 |
2024-10-03 |
25 |
13.运行这段代码,字典会变成什么样子?() cat={'三花猫':7,'布偶猫':11,'狸花猫':13} cat['三花猫&# |
25 |
2024-10-03 |
26 |
12.运行这段代码,终端区会打印什么结果?() nums = (1, 2, 3) nums[2]=5 print(nums) A.(1,2,3) B.(1, 2, 5) C.( |
47 |
2024-10-03 |
27 |
11.以下程序运行的结果是?() i=0 s=0 while i<7: ¡=i+1 if i%2==0: continue s=s+i print('s=,i=('.form |
62 |
2024-10-03 |
28 |
10.藏头诗,又名“藏头格”,是杂体诗中的一种。藏头诗有三种形式,比较常见的是把每句的第一个字连起来读,可以传 |
69 |
2024-10-03 |
29 |
9.1s1=['榴莲',芒果',椰子',杨桃',柠檬',百香果',橄榄',木瓜] ls1.append(['枇 |
25 |
2024-10-03 |
30 |
8.以下选项中,哪段代码不能实现循环10次?(提醒:是不能实现)() A. for i in range(10): B. for i in range(1,20,2 |
78 |
2024-10-03 |
31 |
7.已知一个元组planet=("地球",46,("化石","岩石"),["金星","水星",&qu |
66 |
2024-10-03 |
32 |
6.运行下列代码,终端区打印的结果是?() shiju=["众鸟高飞尽,孤云独去闲",言我独坐之时',"湖光秋月两相和"] shiju |
28 |
2024-10-03 |
33 |
5.已知stu={"一班":"杨思甜","二班":"赵柏瑞","三班":"王一乐" |
30 |
2024-10-03 |
34 |
4.Is=['a','b','c','d','e'],下列哪个选项可以将 Is中的元素顺序整体反转? |
69 |
2024-10-03 |
35 |
3.语句"I like program".replace("m","mming")的运行结果?() A. 'I like prog |
33 |
2024-10-03 |
36 |
2.语句",".join("新年快乐")的运行结果是?() A.‘新,年,快,乐 B.‘新年快乐 C.新年快乐 D.‘新、年、快、乐’ |
22 |
2024-10-03 |
37 |
1.a=['甲',乙',丙’,丁','子',丑'] print(a[4]) 以上代码的输出是?() A.T B.['&# |
48 |
2024-10-03 |
38 |
15.以下程序段执行后绘制出的图形是?() import turtle as t c=['red','yellow','blue',� |
42 |
2024-08-09 |
39 |
14.下列哪个程序不会陷入死循环?( ) A false falsewhile false: print(该程序已经进入死循环!’) B |
97 |
2024-08-09 |
40 |
13.以下程序段运行后打印的结果是?( ) tp=('牢记历史', '不忘过去', '珍爱和平', '开创未来') tq |
67 |
2024-08-09 |