会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
陋室
To Be Yourself!!
博客园
首页
新随笔
联系
订阅
管理
2023年2月3日
Python判断字符串是否为空
摘要:
Python判断字符串是否为空和null方法实例 判断python中的一个字符串是否为空,可以使用如下方法 1、使用字符串长度判断 len(s) ==0 则字符串为空 #!/user/local/python/bin/python # coding=utf-8 test1 = '' if len(t
阅读全文
posted @ 2023-02-03 00:47 胡安
阅读(7312)
评论(0)
推荐(0)
编辑