python脚本---python matplotlib包实现查看图片任一点的坐标

2019-04-15 17:54发布

class="markdown_views prism-dracula"> import matplotlib.pyplot as plt import matplotlib as mpl mpl.rcParams['font.family'] = 'sans-serif' mpl.rcParams['font.sans-serif'] = 'NSimSun,Times New Roman' path = input('please enter your pic path: ') img = plt.imread(path) plt.imshow(img) plt.show()