我在做關於Python的一些研究。什麼是CLI-Loop?正常循環有什麼區別?
而且我看到了類似的東西。
# Start CLI-Loop
while True:
try:
text = raw_input()
except:
text = error()
if text == condition_1:
do_Some_Other_Things_1()
break
elif text == condition_2:
do_Some_Other_Things_2()
CLI-Loop代表「命令行界面循環」嗎?
如果不是,那是什麼意思?
它有什麼特別之處?
沒有什麼特別的。這只是一個循環,需要用戶輸入。另請參閱[REPL](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop)。 –