python from cement import App, Controller, ex class MyController(Controller): class Meta: label = 'base' description = 'This is my command line application' @ex(help='This is a basic command') def my_command(self): print('Hello, world!') class MyApp(App): class Meta: label = 'myapp' base_controller = MyController with MyApp() as app: app.run()


上一篇:
下一篇:
切换中文