How to make a command line interface or interpreter in Python

后端 未结 4 1147
清酒与你
清酒与你 2021-01-12 16:24

I have already developed class1.py, class2.py, etc. with functions implemented inside each class. e.g. Operator.py has add, minus, time, divide functions. How can I build a

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-12 17:17

    Derive from cmd.Cmd, overriding the various methods as necessary.

提交回复
热议问题