Generation

generate functionSun, 23 Apr 2023

帮我写一个柱状图绘制代码

import numpy as np import matplotlib.pyplot as plt def mybar(x, y): plt.bar(x, y) plt.show() x = [1, 2, 3, 4, 5] y = [2, 5, 6, 7, 9] mybar(x, y)

Questions about programming?Chat with your personal AI assistant