花费 23 ms
python判断字符串是否为空和null

1、使用字符串长度判断 len(s==0)则字符串为空 2、isspace判断字符串是否只由空格组成 3、字符串去空格及去指定字符 去两边空格:str.strip() 去左空 ...

Tue Jun 29 04:59:00 CST 2021 0 1557

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM