office.py 文件源码

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

项目:pyFootball 作者: JustnAugr 项目源码 文件源码
def main(user, flag):
    global _user
    global _league
    _user = user
    _league = user.get_league()
    if flag:
        click.clear()
        print('%s Managerial office' % _user.get_team().get_name())
        print('-'.ljust(39,'-'))    
    nav = click.prompt('What would you like to do?', type=click.Choice(['help','inbox','schedule','squad','standings','personal', 'save', 'exit']))
    if nav == 'help':
        print('\nWhile in your office, you have a variety of resources available to you. You may:\n\n'
                'inbox      :  access any new mail you\'ve received, whether they be newsletters, injury news, player communications, or transfer offers\n'
                'schedule   :  take a look at upcoming games and past results of both your team and other teams in the league\n'
                'squad      :  check on how your players are doing, including their stats based on recent training sessions\n'
                'standings  :  see how your team ranks up on the table, along with other useful information and stats\n'
                'personal   :  see your own personal stats and information\n'
                'save       :  save your in-game progress\n'
                'exit       :  exit out of the game, although why would you do that?\n')
        main(_user, False)
    elif nav == 'exit':
        pass
    elif nav == 'inbox':
        inbox()
    elif nav == 'schedule':
        schedule()
    elif nav == 'squad':
        squad()
    elif nav == 'standings':
        standings()
    elif nav == 'personal':
        personal()
    elif nav == 'save':
        save()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号