摘要: 1 python是大小写敏感的 2 遍历一个字典的键值: 3 列表解析功能可以让代码很简洁,比如:squared = [x ** 2 for i in range(0, 3)]还可以加上筛选条件:squared = [x ** 2 for i in range(0, 3) if not x % 2] 阅读全文
posted @ 2019-03-31 18:06 luohaixian 阅读(567) 评论(0) 推荐(0) 编辑