python GUI 显示图片与文字
from tkinter import *
from PIL import Image, ImageTk
import tkinter.font as tf
root = Tk()
root.title("皇马")
sse_text = """皇家马德里足球俱乐部(Real Madrid Club de Fútbol,中文简称为皇马)是一家位于西班牙首都马德里的足球俱乐部.
"""
ft = tf.Font(family='fangsong ti', size=16, slant="italic")
print(tf.families())
image = Image.open("皇马.jpeg")
source_img = ImageTk.PhotoImage(image)
label = Label(root, text=sse_text, image=source_img,
font=ft, wraplength=500,
bg="lightyellow", compound="left")
label.pack()
root.mainloop()