我很难把这段代码转换成流程图。如果你能给我提示,甚至帮我做,那就太好了(当然还有解释)
list = ['Yes','yes','YES','y','Y','NO','No','no','n','N']
list1 = ['Yes','yes','YES','y','Y']
list2 = ['NO','No','no','n','N']
class TS:
def DM4(self):
a = input('Do you have problems with your memory managment?')
if a not in list:
objTS = TS()
objTS.DM4()
elif a in list1:
f = open('dm4.txt', 'r')
print(f.read())
elif a in list2:
objTS = TS()
objTS.Menu()
def Menu(self):
userMenuOpt = input("""******************************************
Welcome to the trobule shooter
Choose a category from the option below:
Hardware
Device Managment
Media & Internet
Not Sure
******************************************`
""")
if userMenuOpt in ["Device Management","DM","devicemanagment","dm","DEVICE MANAGEMENT"]:
objTS = TS()
objTS.DM4()
我不认为有人会为你这么做。我会尽力提供一些提示。在
if __name__ == "__main__":
保护的块中脚本的底部我希望这有帮助。在
相关问题 更多 >
编程相关推荐