@each $i in red, blue, yellow { .bg-#{$i} { background-color; $i } }//或者$color: (1:purple, 2:green, 3:yellowgreen);@each $k, $i in $color { .bd-#{$k} { border: 1px solid $i; }}