public void chooseRoles(String choosedRoles, int capital) {
        char[] rolesID = choosedRoles.toCharArray();
        try {
            if (rolesID.length>1 && rolesID.length < 4)
            {
                //初始化角色
                RichRole[] roles = new RichRole[rolesID.length];
                for (int i=0;i<rolesID.length;i++)
                {
                    roles[i] = new RichRole(rolesID[i], capital);
                    System.out.println("您选择的第" + (i+1) + "个角色是：" + roles[i].getName());
                }
            }
            else
                throw new Exception("只能选择2~4个角色");
            }
        catch (Exception e) {
            System.out.println(e.toString());
            System.exit(0);
            }
    }