废话不多说,直接贴代码,主要采用BeautifulSoup写的
# -*- coding: utf-8 -*-
"""
Created on Mon May 18 19:12:06 2015
@author: Administrator
"""
import urllib
import os
from bs4 import BeautifulSoup
impo...
分类:
编程语言 时间:
2015-05-19 10:44:07
阅读次数:
145
从assets中拷贝from文件到指定目录下。...
分类:
其他好文 时间:
2015-05-19 10:37:49
阅读次数:
101
TriangleTotal Accepted:39052Total Submissions:143341My SubmissionsQuestionSolutionGiven a triangle, find the minimum path sum from top to bottom. Each...
分类:
其他好文 时间:
2015-05-19 10:16:34
阅读次数:
92
public class Solution { public TreeNode buildTree(int[] inorder, int[] postorder) { if (inorder == null || postorder == null || inorder.leng...
分类:
其他好文 时间:
2015-05-19 10:11:11
阅读次数:
113
public class Solution { public TreeNode buildTree(int[] preorder, int[] inorder) { if (preorder == null || inorder == null || preorder.lengt...
分类:
其他好文 时间:
2015-05-19 10:09:22
阅读次数:
136
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-...
分类:
其他好文 时间:
2015-05-19 08:48:01
阅读次数:
104
集合库collection
一些特别的用例,在有些场合Counter非常实用。如果你参加过在这一年的Facebook HackerCup,你甚至也能找到他的实用之处。
from collections import Counter
print Counter("hello")
>>> Counter({'l': 2, 'h': 1, 'e': 1, 'o': 1})
迭代工具...
分类:
编程语言 时间:
2015-05-19 00:49:56
阅读次数:
255
Follow up for "Remove Duplicates":What if duplicates are allowed at most twice?For example,Given sorted array nums = [1,1,1,2,2,3],Your function shou....
分类:
编程语言 时间:
2015-05-19 00:46:34
阅读次数:
334
--查看当前数据库服务器名称:select @@ServerName--查看当前所有数据库服务器名称select * from Sys.SysServers--修改数据库服务器名称sp_dropserver 'old_servername'sp_addserver 'new_servername',...
分类:
数据库 时间:
2015-05-19 00:41:05
阅读次数:
264
Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjace...
分类:
编程语言 时间:
2015-05-19 00:25:26
阅读次数:
210