def get_card_colors(): """ 获取卡券颜色 """ creator = CardCreator(factory=weixin_factory) ret = creator.get_colors() print(ret)