摘要:
可以改变得都是不可哈希得,可哈希得就意味着不可以改变。 已知的可哈希(不可变)得数据类型:int,str,tuple,bool 不可哈希(可变)得数据类型:list,dict,set 阅读全文
posted @ 2020-05-16 22:21
ainimore
阅读(136)
评论(0)
推荐(0)
摘要:
``` 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 阅读全文
posted @ 2020-05-16 22:00
ainimore
阅读(382)
评论(0)
推荐(0)

浙公网安备 33010602011771号