摘要:
可以改变得都是不可哈希得,可哈希得就意味着不可以改变。 已知的可哈希(不可变)得数据类型:int,str,tuple,bool 不可哈希(可变)得数据类型:list,dict,set 阅读全文
摘要:
``` def Count_str(s): if len(s) ==0 : return 0,0,0,0 upper_num,lower_num, number_num,other_num = 0,0,0,0 for i in s: if i.isupper(): upper_num += 1 elif i.islower(): lower_num += 1 elif i.isdigit(): n 阅读全文