请在 下方输入 要搜索的题目:

以下选项的代码运行后,哪个绘制的折线图中有多个线条?()
选项:

A:import matplotlib.pyplot as pltimport numpy as npx = np.arange(1, 6)y_one = np.array(30, 30, 33, 33, 35])plt.plot(x, y_one)plt.show()
B:import matplotlib.pyplot as pltimport numpy as npx = np.arange(1, 6)y_one = np.array(30, 30, 33, 33, 35])y_two = np.array(26, 26, 28, 30, 30])plt.plot(x, y_one)plt.plot(x, y_two)plt.show()
C:import matplotlib.pyplot as pltimport numpy as nparr = np.array(1, 2, 3], 4, 5, 6], 7, 8, 9], 10, 11, 12]])plt.plot(arr0], arr1:])plt.show()
D:import matplotlib.pyplot as pltimport numpy as npx1, x2 = np.array(1, 2, 3]), np.array(1, 2, 3])y1, y2 = np.array(7, 8, 9]), np.array(10, 11, 12])plt.plot(x1, y1, x2, y2)plt.show()

发布时间:2024-04-08 19:00:23
推荐参考答案 ( 由 搜题小帮手 官方老师解答 )
联系客服
答案:

以下文字与答案无关

提示:有些试题内容 显示不完整,文字错误 或者 答案显示错误等问题,这是由于我们在扫描录入过程中 机器识别错误导致,人工逐条矫正总有遗漏,所以恳请 广大网友理解。

相关试题
登录 - 搜题小帮手
点我刷新
立即注册
注册 - 搜题小帮手
点我刷新
立即登录