使用当前浏览器访问考试宝,无法享受最佳体验,推荐使用 Chrome 浏览器进行访问。
更新时间: 试题数量: 购买人数: 提供作者:
有效期: 个月
章节介绍: 共有个章节
我的错题 (0道)
我的收藏 (0道)
我的斩题 (0道)
我的笔记 (0道)
顺序练习 0 / 0
随机练习 自定义设置练习量
题型乱序 按导入顺序练习
模拟考试 仿真模拟
题型练习 按题型分类练习
易错题 精选高频易错题
学习资料 考试学习相关信息
class Book:
def __init__(self, title, author):
self.title = title
self.author = author
class Employee:
employee_count = 0
def __init__(self, name):
self.name = name
Employee.employee_count += 1
class Animal:
class Bird(Animal):
def fly(self):
print("Flapping wings")
class Cat():
def __init__(self,name,color):
self.name=name
self.color=color
def sit(self):
print(self.color +self.name+"is sitting.")
with open('data.txt') as f:
data1=f.readline()
print(data1)
运行程序后,下列说法正确的是?( )
with open('data1.txt') as f:
data=f.readline()
with open('data2.txt','w') as f:
f.write(data)
'data1.txt'内容如下图所示,'data2.txt'文件无内容
(含图)
执行该代码后,下列说法正确的是?( )
import numpy as np
x = [(0,1,2),(3,4,5),(6,7,8)]
a = np.asarray(x)
print (a)
import matplotlib.pyplot as plt
x=np.linspace(-1,1,5)
for i in _______________:
y=x*i
plt.scatter(x ,y)
plt.show()
横线处为一个列表,该列表中有几个元素?( )
a = np.array([[1, 2], [3, 4]])
b = np.array([[5, 6], [7, 8]])
arr = np.add(a, b)
print(arr[0][1])
运行程序后,输出的结果是?( )