switch(choice){case choice1: fun1(); break;case choice2: fun2(); break;......}choice是用来选择的,choice1,choice2...分别是它可能的取值