单项选择题
下列选项中()可以使用matplotlib绘制线性线段图。
A.matplotlib.pyplot.figure(numpy.arange(7))
B.matplotlib.pyplot.plot(numpy.arange(7))
C.matplotlib.pyplot.figure(numpy.arange(8))
D.matplotlib.pyplot.plot(numpy.arange(8))
点击查看答案&解析
相关考题
-
单项选择题
下列python库或模块中,主要用于解析JSON文档的是()
A.BeautifulSoup
B.HTML
C.XML
D.json -
单项选择题
使用python打开my.txt文件的代码如下:File=open(“my.txt”,”a”)假如在“my.txt”中写入”abcd”,下列操作不正确的是()
A.file.write(“abcd”)
B.file.write(list(“abcd”))
C.file.writelines(“abcd”)
D.file.writelines(list(“abcd”)) -
单项选择题
设a.txt文件内容的第一行为“计算机视觉”(有回车换行符),读取该文件第一行“计算”内容正确的是()
A.file=open(“a.txt”);print(file.read(2))
B.file=open(“a.txt”);print(file.read(4))
C.file=open(“a.txt”);print(file.readlines(2))
D.file=open(“a.txt”);print(file.readlines(4))
