📜  Python REPL 循环 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:25.906000             🧑  作者: Mango

代码示例1
# Simple Python REPL loop
# as in Lisp and Scheme 

while True:
    s = input('--> ').strip()
    print("echo input: ", s)
    if (s == "quit"): 
        quit()