check string is empty
AI 回答
由 glm-4-flash 生成 · 仅供参考,请自行核实
1. Python
def is_empty(s):
return not s
2. JavaScript
function isEmpty(s) {
return s === '';
}
3. Java
public boolean isEmpty(String s) {
return s.isEmpty();
}
def is_empty(s):
return not s
2. JavaScript
function isEmpty(s) {
return s === '';
}
3. Java
public boolean isEmpty(String s) {
return s.isEmpty();
}
没有找到「check string is empty」相关的内容
建议:检查关键词是否有错别字,或换一个更常见的说法。