Pattern p = Pattern.compile("[\u4e00-\u9fa5]"); Matcher m = p.matcher(passwords); if (m.find()) { //包含 } else { //不包含 }