todo.py 文件源码

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

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


    # click.echo(click.style("\n[1] Create new list of todo.", fg ='white', bold = True))
    # click.echo(click.style("[2] Add items to your category", fg ='white', bold = True))
    # click.echo(click.style("[q] Quit.", fg ='white', bold = True))

    choice = str(click.prompt(click.style('>>>',  fg = 'cyan', bold = True)))

    while choice != 'q':    
        # Respond to the user's choice.
        if 'create todo' in choice:
            print 'creating'
        elif 'open todo' in choice:
            print 'openning'
        elif 'list todo' in choice:
            print 'listing'
        elif choice:
            exit_todo()
        else:
            click.echo("\nTry again\n")



###LOOPING FUNCTIONS ###
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号