python:实现通过id检验优惠券是否存在,通过goods查找商品 import base64 coupon = { 'id': '1231', 'goods': '0001', } def gen_coupon(id