标签:click 执行 div code col strong class cts 使用
1.添加装饰器
@app.cli.command() def hello(): click.echo(‘Hello, Human!click Fun.‘)
注册了flask命令:即函数名:hello,执行:flask hello 来触发执行
传入自定义命令:
@app.cli.command(‘abc‘)
执行:flask abc
官方文档:https://click.palletsprojects.com/en/6.x/
标签:click 执行 div code col strong class cts 使用
原文地址:https://www.cnblogs.com/sc912/p/14586429.html