1.第一种就是用for指令,然后在循环中列表变量,添加数值 2.第二种就是直接设置列表变量,填写python表达式coupon_id_list(列表变量名)=[x.split(":")[-1] for x in coupon_info]