i doing research python.
and saw this.
# 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()
is cli-loop stands "command line interface loop" ?
if not, mean?
what's special it?
there nothing special loop; author introduces code block, stating it'll interpret commands.
which loop does; using raw_input()
, asks user input terminal, executes functions based on input. in other words, takes commands, interfacing user.
Comments
Post a Comment