从本地文件夹中选取一张图片并在canvas上显示
from tkinter import *
from tkinter import filedialog
from PIL import Image, ImageTk
if __name__ == __main__:
root = Tk()
#setting up a tkinter canvas with scrollbars
frame = Frame(root, bd=2, relief=SUNKEN)
frame.grid_rowconfigure(0, weight=1)
frame.grid_columnc
1