在调用方法结束后返回该字典信息.return { 'warning': { 'title': '产品不存在', 'message': '产品不存在,产品编码:{}'.format(barcode) }} 懂得,原来世界如此简单!