import matplotlib as mpl print(mpl.get_configdir()) 转载于:https://www.cnblogs.com/lucas0625/p/7794587.html