📅  最后修改于: 2022-03-11 14:59:29.084000             🧑  作者: Mango
import tkinter as tk
window = tk()
canvas = Canvas(window, width=300, height=300)
image = PhotoImage('path')
canvas.create_image(height=40, width=40, img=image)