我在在线 Python 课程中遇到了以下问题:import matplotlib.pyplot as plthelp(plt.hist)hist(x, bins=None, range=None, density=None,weights=None, cumulative=False, bottom=None,histtype='bar', align='mid', orientation='vertical',rwidth=None, log=False, color=None, label=None,stacked=False, normed=None, hold=None, data=None,**kwargs)Plot a histogram.Compute and draw the histogram of *x*. The return valueis a tuple (*n*, *bins*, *patches*) or ([*n0*, *n1*,...], *bins*, [*patches0*, *patches1*,...]) if the inputcontains multiple data.有很多网页解释了星号前缀,但主要问题是:跨越星号只是表示参数名称加粗还是斜体?在相关说明中,我过去常常将跨越某些代码的注释视为“装饰”。但是,我无法通过网络搜索清楚地证实这一点。我发现的一点点似乎表明装饰是指以比简单的跨越更复杂的方式向代码添加代码。 次要问题:普遍接受的装饰定义是什么?
添加回答
举报
0/150
提交
取消