def import_trade(self, trade):
        """
        trade是一个可迭代的list/generator
        """
        for item in trade:
            self.make_deal(item.code, item.datetime, item.amount,
                           item.towards, item.price.item.order_model, item.amount_model)
def import_trade ( self , trade ) : for item in trade : self . make_deal ( item . code , item . datetime , item . amount , item . towards , item . price . item . order_model , item . amount_model )
trade是一个可迭代的list/generator