用的google colab
我怀疑是d2l包里这里出了什么问题?
Do this and try again:
!pip uninstall matplotlib !pip install matplotlib==3.0.2