Python提供了isupper(),islower(),istitle()方法用来判断字符串的大小写。
strings = {'cad', 'PE ', 'Window', 'FM', 'hello', 'world','flowers'}
n=0
for word in strings:
if word.islower:
n += 1
print(n)
Python提供了isupper(),islower(),istitle()方法用来判断字符串的大小写。
strings = {'cad', 'PE ', 'Window', 'FM', 'hello', 'world','flowers'}
n=0
for word in strings:
if word.islower:
n += 1
print(n)
MySQL如何查询某个字段含有字母数字的值。
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M