标签:运行 div time import pre __name__ add == test
# coding:utf8 import time import click @click.command() @click.option(‘--id‘, default=‘123‘, help=‘add id‘) def main(token): click.echo(f‘start to insert id:{id}‘) db.insert_token(token) click.echo(f‘success to insert id:{id}‘) if __name__ == ‘__main__‘: main()
在命令行运行方法
test.py --id 1234
标签:运行 div time import pre __name__ add == test
原文地址:https://www.cnblogs.com/c-x-a/p/9767103.html