Python printing function output multiple times
问题 I'm making a program to accomplish a certain python challenge. I created the program, and it basically does everything I need it to do, except it's got one weird quirk; it prints the output I want multiple times. cmdname = input("Enter the name of your command.\n>") print("Enter options one by one. If the option has an argument, put a * at the end of the option. When done entering options, enter \"q\".") oplist = "" oplist += cmdname + " " def prgm(): global oplist while 2 + 2 == 4: user =