1.条件语句没有end:algorithm环境加上这一句,\SetAlgoLined 2.条件语句有多余end的情况,如if-end-else-end,实际你可能需要if-else-end:用\uIf而不用\If