import webbrowser
from tkinter import *
#pip install tk  安装依赖
def show():
    word = ent.get()
    nun=iv_default.get()
    #nun=1
    if nun==1:
        Link = 'https://im1907.top/?jx=' + word
        webbrowser.open(Link)
    elif nun==2:
        Link = 'https://jx.aidouer.net/?url=' + word
        webbrowser.open(Link)
    elif nun==3:
        Link = 'https://jx.dj6u.com/?url='+word
        webbrowser.open(Link)
root=Tk()
root.title('vip视频播放')
root.geometry("600x300")
iv_default = IntVar()
r1=Radiobutton(root,text='数据源1',value=1,variable=iv_default)#创建选项按钮
r2=Radiobutton(root,text='数据源2',value=2,variable=iv_default)
r3=Radiobutton(root,text='数据源3',value=3,variable=iv_default)
iv_default.set(1)
r1.pack(anchor=NW)
r2.pack(anchor=NW)
r3.pack(anchor=NW)
Label(root, text="视频地址: ").pack()
ent = Entry(root,width=70) # 文本框
ent.pack()
Button(root, text="播放", command=show).pack()
mainloop()