- 链接地址:https://hero78.blog.csdn.net/article/details/123040552
- 链接标题:Python数据结构之字典_[letter if letter in used_letters else '-' for let-CSDN博客
- 所属网站:hero78.blog.csdn.net
- 被收藏次数:7885
文章浏览阅读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]
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除