python 是否只包含唯一字符

判断string里是否只包含唯一字符

len(set(string)) == len(string)

posted @ 2021-03-10 15:41  maxsmile17  阅读(130)  评论(0编辑  收藏  举报