代码示例 from PIL import Image, ImageGrab, ImageTk import tkinter as tk import cv2 img_pil = Image.open('../img/demo.jpg') img_pil = img_pil.resize((120,80