特牛网址导航

Python数据结构之字典_[letter if letter in used_letters else '-' for let-CSDN博客

网友收藏
文章浏览阅读1k次,点赞7次,收藏8次。python集合小练习if __name__ == '__main__': n1 = [1,3,5,7,12,14,16,18,23] list = [] l = len(n1) for i in range(0, l - 1): for j in range(i + 1, l): if n1[i] + n1[j] == 17: _[letter if letter in used_letters else '-' for letter in word]