首页题目详情

若要使用matplotlib包中的pyplot模块,正确的导入方式是?

题目配图
A.import matplotlib.pyplot
B.from matplotlib import pyplot
C.import matplotlib as plt
D.from pyplot import matplotlib

优质解答

答案

A

解析

正确的方式是'import matplotlib.pyplot',这样可以通过matplotlib.pyplot来调用pyplot模块中的函数。

查看答案和解析

支付 ¥0.1 即可查看此题答案和详细解析

低至 ¥0.1 起

Python程序设计单选题中等AI生成