from tkinter import *

root = Tk()

photo = PhotoImage(file = "bg.gif")
textLabel = Label(root,
                  text = "学Python",
                  justify = LEFT,
                  image = photo,
                  compound = CENTER,
                  font = ("华康少女字体",28),
                  fg = "yellow")
textLabel.pack(side = LEFT)


mainloop()

47f11a56a4db50c23c6b063ae9c1d0e31f257bbb
<mask token>

<mask token>
textLabel.pack(side=LEFT)
mainloop()

<mask token>
root = Tk()
photo = PhotoImage(file='bg.gif')
textLabel = Label(root, text='学Python', justify=LEFT, image=photo, compound
    =CENTER, font=('华康少女字体', 28), fg='yellow')
textLabel.pack(side=LEFT)
mainloop()

from tkinter import *
root = Tk()
photo = PhotoImage(file='bg.gif')
textLabel = Label(root, text='学Python', justify=LEFT, image=photo, compound
    =CENTER, font=('华康少女字体', 28), fg='yellow')
textLabel.pack(side=LEFT)
mainloop()

from tkinter import *

root = Tk()

photo = PhotoImage(file = "bg.gif")
textLabel = Label(root,
                  text = "学Python",
                  justify = LEFT,
                  image = photo,
                  compound = CENTER,
                  font = ("华康少女字体",28),
                  fg = "yellow")
textLabel.pack(side = LEFT)


mainloop()
