cmd.py 文件源码

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

项目:mpsign 作者: abrasumente233 项目源码 文件源码
def info(name=None):
    if name is None:
        user_rows = user_table.all()
    else:
        user_rows = [user_table.get(where('name') == name)]

    if len(user_rows) == 0:
        print('No user yet.')
        return

    if user_rows[0] is None:
        raise UserNotFound

    row_format = '{:>15}{:>15}{:>20}'

    print(row_format.format('Name', 'EXP', 'is BDUSS valid'))

    for user_row in user_rows:
        print(row_format.format(user_row['name'],
                                user_row['exp'],
                                str(User(user_row['bduss']).validation)))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号