企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
| 判断字符串是否为空,为None,为"''",为"null" | | | --- | --- | ``` def empty(string): if string is None: return True elif string.strip() == "''": return True elif string.strip() == "null": return True elif not string.strip(): return True else: return False return False ```