python字符串相等if,python判断字符串是否为空用...

发布网友 发布时间:2022-04-22 03:11

我来回答

2个回答

热心网友 时间:2024-08-19 17:12

reaCode = Noneif ( reaCode == None ): print "is null"else : print "not!"if ( reaCode is None ): print "is null"else : print "not!"reaCode = ''if ( reaCode is '' ): print "is null string"else : print "not!"reaCode = ''if ( reaCo...

热心网友 时间:2024-08-19 17:20

if not str:

热心网友 时间:2024-08-19 17:18

reaCode = Noneif ( reaCode == None ): print "is null"else : print "not!"if ( reaCode is None ): print "is null"else : print "not!"reaCode = ''if ( reaCode is '' ): print "is null string"else : print "not!"reaCode = ''if ( reaCo...

热心网友 时间:2024-08-19 17:14

if not str:

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com