101 17:以下代码的输出是什么?() int x=2;  switch(x){  case 1: x+=1;  case 2: × += 2;  case 3: ×+=3; break;  de 2025-03-24
102 03:以下代码的输出结果是什么?  int a=5; cout <<(a++*2)<<" "<<a; A. 10 5 B.10 6 C. 12 2025-03-24
103 14.执行下列代码,输出结果是?() import numpy as np x=[(0,1,2),(3,4,5),(6,7,8)] a np.asarray( print (a) ​​​​​​​A.[ 2025-03-23
104 21.如果运行下列代码的输出结果是:[1,2,3,4,5],则在①处应填入?() a=[1,0,2,0,3,0,4,0,5,0] b=[] for i in range(①); b.append(a[ 2025-03-20
105 31.运行以下代码: def fun(x, y,z): return x y-z print(fun(1, y=10, 3) 运行结果为:8。() 正确 错误 2025-03-19
106 34.下面三行代码可以正常执行。() txt1="黑白白白黑白黑白黑白黑白" a=txt1.count("白")-txt1.count("黑&quot 2025-03-19
107 18.下列代码的输出结果是?() b='天天向上' print (b*2) A.向向上 B.天天向上天天向上 C.天天向上*2 D.天天向上2 2025-03-19
108 12.f=open('1.txt','w') f.write('\n\n'.join(['桃子','苹果& 2025-03-19
109 1.学校进行体育跳远期末考试,每人有三次机会,取最远的一次作为最后成绩,1班的成绩如下,CLASS1=['李明,150,152,147],['王红',146,143,14 2025-03-19
110 27.执行如下代码的运行结果是CHNA.() for c in "CHINA": if c== "I" : continue print(c, end=&quo 2025-03-16
111 8.运行下列代码,终端区打印的结果是?() dic={'qq':26453343,'weixin':35345749,'qq':394594 2025-03-16
112 34.运行代码print(int(3.9999),输出的结果是4。() 正确 错误 2025-03-16
113 24.运行代码 print(4*9=" print(36) 的结果是以下哪一项?() A.4*9= 36 B.4*9 C.36 D.4*9=,36 2025-03-16
114 21.执行代码 name=input('请输入姓名:'),并输入张三,那么变量name中存放的是?() A.请输入姓名: B.张三 C.请输入姓名:张三 D.张三请输入 2025-03-16
115 04.下列图形可能是哪段代码执行后的结果? A.import turtle turtle shape("turtle") turtle.forward(120) tur 2025-03-16
116 为了避免异常是否可以将所有代码放入到try语句块中?为什么? 2025-02-15
117 34.阅读以下代码,游标cursor被用来执行SQL查询并获取查询结果。( ) import sqlite3   conn = sqlite3.connect('example.db&#03 2024-12-29
118 31.阅读以下代码: import matplotlib.pyplot as plt plt.plot(x, y) plt.show() 以上程序中,plot()函数的参数x和y可为数组、列表、 2024-12-29
119 24.阅读以下代码: import sqlite3   conn = sqlite3.connect('database.db')   c = conn.cursor()   c. 2024-12-29
120 23.阅读以下代码: import sqlite3   conn = sqlite3.connect('example.db')   c = conn.cursor()   c.e 2024-12-29
121 5.下面代码的输出结果正确的是?( ) import tkinter as tk root = tk.Tk() my_var = tk.StringVar() my_var.set("Hel 2024-12-29
122 1.下面代码的输出结果正确的是?( ) import json json_str =' [ "Alice", “girl",  17,"New Yor 2024-12-29
123 33.运行下列代码的输出结果为(3,2,1)。() t=(2,3,1) t.sort() print(t) 正确 错误 2024-12-27
124 24.阅读以下代码,描述错误的选项是?() import wordcloud txt="Nothing is impossible!" w=wordcloud.WordCloud( 2024-12-27
125 2.以下代码的输出结果是?() x='C\0T\0P' print(len(x)) A. 3 B.4 C.5 D. 7 2024-12-26