import tkinter.messagebox as msgbox import tkinter as tk import webbrowser import re import urllib.parse class APP: def __init__(self, width=500, height=300): self.width = width self.height = height self.title = '视频解析器' self.root = tk.Tk(className=self.title) self.url = tk.StringVar() self.v = tk.IntVar() self.v.set(1) frame_1 = tk.Frame(self.root) frame_2 = tk.Frame(self.root) frame_3 = tk.Frame(self.root) menu = tk.Menu(self.root) self.root.config(menu=menu) moviemenu = tk.Menu(menu, tearoff=0) menu.add_cascade(label='友情链接', menu=moviemenu) websites = [ 'http://v.qq.com/', 'http://tv.sohu.com/', 'http://www.mgtv.com/', 'http://www.iqiyi.com/', 'http://www.bilibili.c标签:http,Python,menu,self,神器,追剧,tk,import,root From: https://blog.csdn.net/qq_68809241/article/details/143427123