通过for字符取出,然后用count计算字母的个数,随后判断count的值
a='i love chian'
b=True
for i in a:
if a.count(i)>1:
b=False
print(b)
字符大小写互换
https://blog.csdn.net/GrofChen/article/details/92435836
通过for字符取出,然后用count计算字母的个数,随后判断count的值
a='i love chian'
b=True
for i in a:
if a.count(i)>1:
b=False
print(b)
字符大小写互换
https://blog.csdn.net/GrofChen/article/details/92435836