150. (判断题)Python中字符串数据类型是不可变数据类型
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-e2bf-c01a-2cf5d6189000.html
点击查看答案
59. (单选题)在if语句中进行判断,产生( )时会输出相应的结果
A. 0
B. 1
C. 布尔值
D. 以上均不正确
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-2d32-c01a-2cf5d6189000.html
点击查看答案
33. (多选题)设置二行二列4个子图并在第3个区域绘制图形,以下语句正确的有:
A. plt.subplot(2, 2, 3)
B. plt.subplot(2, 2, 2)
C. plt.subplot(223)
D. plt.subplot(222)
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-f634-c01a-2cf5d6189000.html
点击查看答案
25. (多选题)创建空字典的方法为:
A. d = {}print(d)
B. d = dict()print(d)
C. d = ()print(d)
D. d = set()print(d)
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-e54f-c01a-2cf5d6189000.html
点击查看答案
106. (单选题)以下代码的输出结果是( )for s in "testatest":if s=="a" or s=="e":continueprint(s,end='')
A. tsttst
B. testatest
C. testtest
D. tstatst
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-8cb3-c01a-2cf5d6189000.html
点击查看答案
165. (判断题)函数的名称可以随意命名
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-feaa-c01a-2cf5d6189000.html
点击查看答案
32. (多选题)利用numpy读文件中的数据为数组的方法有:
A. numpy.load()
B. numpy.genfromtxt()
C. numpy.loadtxt()
D. numpy.fromtxt()
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-f409-c01a-2cf5d6189000.html
点击查看答案
124. (单选题)下列有关函数的说法中,正确的是( )
A. 函数的定义必须在程序的开头
B. 函数定义后,其中的程序就可以自动执行
C. 函数定义后需要调用才会执行
D. 函数体与关键字def必须左对齐
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-ae06-c01a-2cf5d6189000.html
点击查看答案
152. (判断题)通过insert方法可以在指定的索引位置插入元素
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-e6ed-c01a-2cf5d6189000.html
点击查看答案
127. (单选题)写出下面代码的运行结果。Plain Textdef Sum(a, b=3, c=5):print(a,b,c)Sum(a=8, c=2)
A. 8 2
B. 8,2
C. 8 3 2
D. 8,3,2
解析:答案解析:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-b37a-c01a-2cf5d6189000.html
点击查看答案