面试题答案
一键面试import matplotlib.pyplot as plt
x = [1, 2, 3, 4, 5]
y = [10, 11, 14, 15, 17]
plt.plot(x, y, marker='o')
plt.title('示例折线图')
plt.xlabel('X值')
plt.ylabel('Y值')
plt.show()
import matplotlib.pyplot as plt
x = [1, 2, 3, 4, 5]
y = [10, 11, 14, 15, 17]
plt.plot(x, y, marker='o')
plt.title('示例折线图')
plt.xlabel('X值')
plt.ylabel('Y值')
plt.show()