摘要: 激活的办法:这个必须的联网才可以使用(每次打开PyCharm都需要电脑联网才可以正常使用),要是没网的话,就不能激活使用啦,大家注意哈。 http://idea.iteblog.com/key.php(推荐,实测有效) 阅读全文
posted @ 2017-12-19 14:39 SRE在路上 阅读(487) 评论(0) 推荐(0) 编辑
摘要: 列表去重 1.方法1 借助一个临时列表 ids = [1,2,3,3,4,2,3,4,5,6,1] news_ids = [] for id in ids: if id not in news_ids: news_ids.append(id) print news_ids 2.方法2 使用set方法 阅读全文
posted @ 2017-12-19 14:30 SRE在路上 阅读(329) 评论(0) 推荐(0) 编辑