import matplotlib; matplotlib.use('agg') 注意:要添加到所有matplotlib前面,否则不起作用 相关文章: 2021-09-17 2021-06-18 2021-09-01 2022-12-23 2021-05-13 2021-09-23 2021-08-18 2021-06-01