现在,我有一个名为make_a_bargraph()的函数,它有一个colour参数。我想要的是它也接受color (美国拼写)作为一个有效的论点。理想情况下,我们应该有这样的功能: #' @desc function to do something with thecolour to be printed}
# with the 'regular
java.awt.Container.addImpl(Container.java:1089) at BarGraph.main(BarGraph.java:115)任何帮助都是非常感谢的。java.util.Scanner;import java.awt.event.*;
public class BarGraph