0
点赞
收藏
分享

微信扫一扫

python判断一个字符是不是在一个字符串中关键字in ,not in


#_*_ coding:utf-8 _*_
import string
print "ab" in string.lowercase
#output true
print "ab" not in "defds"
#output true


举报

相关推荐

0 条评论