def _init(self,items = {}):
"""Optionally pass in an inital dictionary of items"""
if type(items) != type({}):
raise TypeError("Fridge requires a dictonary but was given
%s " %type(items))
self.items = items
添加回答
举报
0/150
提交
取消