#?-*-?coding:utf-8?-*-
#python?2.7
#?分解需求
#1.生成2位數?隨機數?那麽就是random.randint(10,?99)
#2.生成100?個那麽就是?for?i?in?range(100)
import?random
random_tuple?=?tuple(random.randint(10,?99)?for?i?in?range(100))
print?random_tuple
#字典?dict_num={'數字':'出現的次數'}
dict_num={}
for?i?in?random_tuple:
if?dict_num.get(i):
dict_num[i]+=1
else:
dict_num[i]=1
print?dict_num