37,745
社区成员




from IPython.display import display, Image
path = "1.jpg"
img = Image(path)
display(img)
import matplotlib.pyplot as plt
img = plt.imread(r'C:\Users\secsi\Pictures\Saved Pictures\384px-Venn0111.svg.png')
plt.imshow(img)
plt.show()
[/quote]
嗯嗯,谢谢,用这个写我知道,不过我是想知道用Ipython.display中的实现,谢谢import matplotlib.pyplot as plt
img = plt.imread(r'C:\Users\secsi\Pictures\Saved Pictures\384px-Venn0111.svg.png')
plt.imshow(img)
plt.show()