小小白ppboom

导航

 

2022年1月5日

摘要: colors = ['black', 'white']sizes = ['s', 'm', 'l']tshirts = [(color, size) for color in colors for size in sizes]print(tshirts)#列表推导的作用只有一个,生成列表。#生成器表 阅读全文
posted @ 2022-01-05 16:43 小小白ppboom 阅读(42) 评论(0) 推荐(0)