After searching, it is found that the way to write when importing the package is wrong.
That’s what I wrote
import matplotlib as plt
That’s OK
import matplotlib.pyplot as plt
After searching, it is found that the way to write when importing the package is wrong.
That’s what I wrote
import matplotlib as plt
That’s OK
import matplotlib.pyplot as plt