我收到以下錯(cuò)誤,但僅在第二次運(yùn)行刪除功能時(shí):`Traceback (most recent call last): File "English Tools.py", line 277, in <module> English = English_Tools() File "English Tools.py", line 100, in __init__ self.delete()TypeError: 'str' object is not callable`這是我的代碼:#Importsimport osimport sysimport timeimport requestsimport configparserfrom os import pathfrom colorama import init, Foreinit()#Color Classclass color: end = '\033[0m' bold = '\033[1m' underline = '\033[4m'def clear(): print("\n" * 50)#Variablesend = color.endbold = color.boldred = Fore.REDblue = Fore.BLUEcyan = Fore.CYANgreen = Fore.GREENwhite = Fore.WHITEyellow = Fore.YELLOWpurple = Fore.MAGENTAconfig = configparser.ConfigParser()title = green + bold + "English Tools"credit = green + bold + "-Made by Jackal"bad_info = red + "[+] " + yellow + color.boldgood_info = green + "[+] " + blue + color.boldbad_update = red + "[!] " + yellow + color.boldgood_update = green + "[!] " + blue + color.boldintext = blue + color.bold + ">>> " + green + endcommand_words = green + bold + "[1] " + end + white + " - " + blue + "Use logophile module" + purplecommand_read = green + bold + "[2] " + end + white + " - " + blue + "Read your entrys" + purplecommand_delete = green + bold + "[3] " + end + white + " - " + blue + "Reset all data" + purple我第一次可以完美地運(yùn)行刪除功能,但如果我嘗試在同一個(gè)會話中再次運(yùn)行它,它會拋出錯(cuò)誤。有人知道怎么修這個(gè)東西嗎?我可以多次運(yùn)行所有其他功能,但給我?guī)砺闊┑闹皇莿h除功能。
添加回答
舉報(bào)
0/150
提交
取消