主页
Python
Python cmd 模块
demo_ref_module_cmd_basic
运行 ❯
×
更改方向
保存代码
更改主题
import cmd class Hello(cmd.Cmd): def do_hello(self, arg): print(f"Hello, {arg}!") h = Hello() h.do_hello("Linus")
Hello, Linus!