todo.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:bc-7-Todo-Console-Application 作者: Onikah 项目源码 文件源码
def list_todos_all():

    os.system('clear')

    todo_title()

    count = 1
    click.echo(click.style('TO DO LIST',  fg='green', bold=True , underline=True))
    s = select([Category])
    result = s.execute()
    if result:
        for row in result:
            q = session.query(Items).filter(Items.category_id==row[0]).all()

            click.echo(click.style( Fore.CYAN + str([count])+(Fore.CYAN + ' ' + row[1]),bold=True  ))
            count += 1


            for i in q:
                click.echo(click.style('>>>' + i.items  , fg='white', bold=True))

        start_todo()
    else:
        click.echo('Nothing to display')

#FIREBASE SYNC AND SAVE
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号