1. switch循环
switch (Type) { case 1: if (answerCount > 1) { isCorrect = false; remark += "单选题只能有一个答案;"; } break; case 2: if (answerCount < 2) { isCorrect = false; remark += "多选题至少需要两个答案;"; } break; default: break; }
标签:case,remark,false,isCorrect,break,switch,循环 From: https://www.cnblogs.com/wzzcc/p/17815138.html