• 2022-07-29
    可使用while循环让程序在用户愿意时不断地运行。即在程序中定义了一个退出值,只要用户输入的不是quit,[br][/br] 程序就接着运行。横线处代码应填: prompt="Tell me something,and I will repeat it back to you.\n" prompt+="Enter 'quit'to end the program." message='' message=input(prompt) print(message)
    A: if message !="quit":
    B: for message !="quit":
    C: def message !="quit":
    D: while message !="quit":