摘要: 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) 编辑