我有一个有几个嵌套菜单的 python 脚本,我想问如果我将各个函数组合成类是否更好。我有一个带有两个子菜单的主菜单,每个子菜单都有另一个子菜单。代码在这个链接中:https ://github.com/mangoomeh/clashRoyaleClanManager/blob/master/clash.py
我有一个有几个嵌套菜单的 python 脚本,我想问如果我将各个函数组合成类是否更好。我有一个带有两个子菜单的主菜单,每个子菜单都有另一个子菜单。代码在这个链接中:https ://github.com/mangoomeh/clashRoyaleClanManager/blob/master/clash.py