报错通识
某个方法传进去过多的参数导致报错
问题背景:
在使用python的matplotlib模块的多个坐标系显示-plt.subplots(面向对象的画图方法)时,报错如下
TypeError: set_ticks() takes 2 positional arguments but 3 were given
# 2.2.4 多个坐标系显示-plt.subplots(面向对象的画图方法)
# 准备x, y坐标的数据
x = range(60)
y_shanghai = [random.uniform(15,18) for i in x]
# 增加北京的温度数据
y_beijing = [random.unif