原创 unittest使用小demo

1.編寫一個Dict的類,這個類的行爲和dict的用法一致,也可以通過屬性來訪問。編寫mydict.py如下: # -*- coding:utf-8 -*- class Dict(dict): def __init__(self,