Python不支持的数据类型有()。
- Achar
- Bint
- Cfloat
- Dlist
Python语言语句块的标记是。
- A分号
- B逗号
- C缩进
- D/
以下哪个是Python中的合法变量名?。
- A2variable
- Bvariable2
- Cvariable-name
- Dvariable name
Python中"ab"+"c"*2 结果是。
- Aabc2
- Babcabc
- Cabcc
- Dababcc
以下不属于Python基本数据类型的是
- A列表(list)
- B字典(dict)
- C数组(array)
- D字符串(str)
定义Python函数的关键字是
- Afunc
- Bfunction
- Cdef
- Ddefine
执行`for i in range(3): print(i)`,输出结果不包含
- A0
- B1
- C2
- D3
NumPy中创建全1数组的函数是
- Anp.zeros()
- Bnp.ones()
- Cnp.full()
- Dnp.empty()
以下关于Python字典的说法,错误的是
- A字典是键值对结构
- B键必须是不可变类型
- C值可以是任意类型
- D字典支持下标索引(如dict[0])
Pandas中筛选数据框df中“score”列大于80的行,正确的是
- Adf[df['score'] > 80]
- Bdf.loc[df['score'] > 80]
- Cdf.filter(df['score'] > 80)
- D以上都正确
Matplotlib绘制柱状图的函数是
- Aplt.plot()
- Bplt.bar()
- Cplt.scatter()
- Dplt.hist()
导入Matplotlib库并简写为plt的正确语句是
- Aimport matplotlib as plt
- Bimport matplotlib.pyplot as plt
- Cfrom matplotlib import plt
- Dimport plt from matplotlib
执行`a = [1,2,3]; b = a; b.append(4)`后,a的结果是
- A[1,2,3]
- B[1,2,3,4]
- C[4]
- D报错
Python 中列表是可变类型,元组是不可变类型。
- A对
- B错
Pandas 数据框的筛选操作会修改原数据框。
- A对
- B错
NumPy 数组运算支持向量化操作,无需循环遍历。
- A对
- B错
Matplotlib 绘制折线图时,必须手动设置 x 轴和 y 轴数据。
- A对
- B错
Python 中模块导入后,其内部的所有函数都可以不受限定直接调用。
- A对
- B错
Python 中条件判断的关键字是if,循环语句包含for和______两种。()
NumPy 数组的维度称为秩|ndim,数组的形状可以通过shape属性查看,修改形状用______方法。()
本页仅提供题目与选项供学习参考,不含答案。如需系统练习、自动判分与错题本,欢迎前往主站《人工智能通识基础》在线练习。