python from clickt import * python @clickt.command() @clickt.argument('name') @clickt.option('--count', default=1, help='Number of times to greet.') def greet(name, count): for _ in range(count): clickt.echo('Hello, {}'.format(name)) python @clickt.group() def cli(): pass @cli.command() def command1(): clickt.echo('This is command 1.') @cli.command() def command2(): clickt.echo('This is command 2.')


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