编辑器
import cmd class Hello(cmd.Cmd): def do_hello(self, arg): print(f"Hello, {arg}!") h = Hello() h.do_hello("Linus")
Hello, Linus!