python 判断字符串是否为空用什么方法?
复制代码 s=' ' if s.strip()=='': print 's is null' 或者 if not s.strip(): print 's is null'
复制代码
所有的悲情叙事,都是因为你的基础体能不够
文章标签 python in 空字符串 字符串 python 文章分类 Python 后端开发
python 判断字符串是否为空用什么方法?
复制代码 s=' ' if s.strip()=='': print 's is null' 或者 if not s.strip(): print 's is null'
复制代码
所有的悲情叙事,都是因为你的基础体能不够
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M