Try this: newItem = str() while newItem != "exit": newItem = input('Input the new device:') print("'exit' was typed.").
確定! 回上一頁