Python 判断字符串是否为空 发表于: 2023-08-15 字数: 12 阅读:≈ 1分钟def empty(s): return s is None or len(s) == 0 or s.isblank()