摘要: 前两天,想抢购一个小米MIX,结果,一开始抢就没有了。于是想,作为程序猿,总得有点特殊手段吧,比如说一个小脚本。最近在学习python,百度了一下,发现了Splinter这个强大的东东!用了不到两小时的时间,就可以实现许多令人点赞的功能,真让人很兴奋呐! 首先,官网(https://splinter 阅读全文
posted @ 2016-11-21 13:21 PolarBearInterest 阅读(7338) 评论(3) 推荐(1) 编辑
摘要: 为了学习werkzeug的wsgi框架工具,今天真对官网的例子进行调试运行。涉及到了werkzeug工具包,jinja2前端模版,以及redis内存库,之后可以灵活定制自己主页。再次,作以记录。 首先,参考官网流程完成部署,当然,Python2和Python3有一定区别,需要大家注意,官网代码都是一 阅读全文
posted @ 2016-11-20 02:45 PolarBearInterest 阅读(427) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a linked list, remove the nth node from the end of list and return its head. For example, Note: Given n will always be valid. Try to do this 阅读全文
posted @ 2016-11-16 23:47 PolarBearInterest 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the tel 阅读全文
posted @ 2016-11-14 18:10 PolarBearInterest 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 在自己的云平台上部署了IntelliJIDEALicenseServer服务,理论上http://www.jetbrains.com的产品都可以使用,不过目前只测试了PyCharm。 大家也知道,Python好用的IDE不多,PyCharm算是功能比较全的一个啦! PyCharm LicenseSe 阅读全文
posted @ 2016-11-10 14:45 PolarBearInterest 阅读(8852) 评论(2) 推荐(0) 编辑
摘要: 题目: Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integ 阅读全文
posted @ 2016-11-09 18:41 PolarBearInterest 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum 阅读全文
posted @ 2016-11-05 13:46 PolarBearInterest 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 工作中需要遍历文件夹,期初用java写,用File类中的实例方法遍历指定文件夹中文件,主要是图片,并将文件名写入指定文件,。 测试了一下,60万需要用时:224700 豪秒,即224.7秒 package ioOperation;import java.io.*;import java.util.* 阅读全文
posted @ 2016-11-03 13:11 PolarBearInterest 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a string, sort it in decreasing order based on the frequency of characters. Example 1: Example 2: Example 3: 这个函数在collection模块的Counter类中: 于是 阅读全文
posted @ 2016-11-03 10:36 PolarBearInterest 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 题目: Write a function to find the longest common prefix string amongst an array of strings. Subscribe to see which companies asked this question Subscr 阅读全文
posted @ 2016-11-02 17:56 PolarBearInterest 阅读(99) 评论(0) 推荐(0) 编辑