Python 學習日記四(20180905)

1. 2. 3.girls=['Alice','Bernice','Clarice'] boys=['Arnold','Chris','Bob'] letterGirls={} for girl in girls: letterGirls.setdefault(girl[0],[]).append(girl) print([b+'+'+g for b in boys for g in letter
相關文章
相關標籤/搜索