if (str == null || str.isEmpty()) {
// 字符串为空
} else {
// 字符串非空
}
题解 - 序列
2024-07-11 21:20:03 86 阅读
if (str == null || str.isEmpty()) {
// 字符串为空
} else {
// 字符串非空
}