from tkinter import *
win = Tk()
win.title("逻辑网")
win.iconbitmap('../image/icon.ico')
frame = Frame(win, relief=SUNKEN, borderwidth=2, width=450, height=250)
frame.pack(side=TOP, fill=BOTH, expand=1)
Label1 = Label(frame, text="位置1", bg='blue', fg='white')
Label1.place(x=40, y=40, width=60, height=30)
Label2 = Label(frame, text="位置2", bg='purple', fg='white')
Label2.place(x=180, y=80, anchor=NE, width=60, height=30)
Label3 = Label(frame, text="位置3", bg='green', fg='white')
Label3.place(relx=0.6, y=80, width=60, height=30)
Label4 = Label(frame, text="位置4", bg='gray', fg='white')
Label4.place(relx=0.01, y=80, relheight=0.4, width=80)
win.mainloop()