码迷,mamicode.com
首页 >  
搜索关键字:end    ( 30778个结果
Python爬取韩寒所有新浪博客
接上一篇,我们依据第一页的链接爬取了第一页的博客,我们不难发现,每一页的链接就仅仅有一处不同(页码序号),我们仅仅要在上一篇的代码外面加一个循环,这样就能够爬取全部博客分页的博文。也就是全部博文了。 # -*- coding : -utf-8 -*- import urllib import tim ...
分类:编程语言   时间:2017-07-15 11:14:40    阅读次数:245
LeetCode 226 Invert Binary Tree(转换二叉树)
翻译 将下图中上面的二叉树转换为以下的形式。详细为每一个左孩子节点和右孩子节点互换位置。 原文 如上图 分析 每次关于树的题目出错都在于边界条件上……所以这次细致多想了一遍: void swapNode(TreeNode* tree) { if (tree == NULL || (tree->lef ...
分类:其他好文   时间:2017-07-15 10:14:11    阅读次数:179
K Closest Numbers In Sorted Array
Given a target number, a non-negative integer k and an integer array A sorted in ascending order, find the k closest numbers to target in A, sorted in ...
分类:其他好文   时间:2017-07-15 10:12:50    阅读次数:142
C#-XML文件提取字符串+字符串存为XML文件+创建XML(自定义节点)文件+读取节点内容
一、将字符串写入xml文件(并保存) 写入: XmlDocument xdoc = new XmlDocument(); xdoc.LoadXml(“xmlstring”); 保存: xdoc.Save(“pathsave.xml”) 二、将xml文件赋值到字符串 读取xml文件: XmlDocum ...
分类:Windows程序   时间:2017-07-15 10:09:44    阅读次数:239
问题解决记录【612-714】
1.字符串转json对象 <!-- https://mvnrepository.com/artifact/net.sf.json-lib/json-lib --> <dependency> <groupId>net.sf.json-lib</groupId> <artifactId>json-lib ...
分类:其他好文   时间:2017-07-15 10:07:44    阅读次数:159
[LintCode] Number of Airplanes in the Sky
Given an interval list which are flying and landing time of the flight. How many airplanes are on the sky at most? If landing and flying happens at th ...
分类:其他好文   时间:2017-07-15 09:58:01    阅读次数:132
20170714xlVba多个工作簿转多个Word文档表格
Public Sub SameFolderGather() Application.ScreenUpdating = False Application.DisplayAlerts = False Application.Calculation = xlCalculationManual Appli... ...
分类:编程语言   时间:2017-07-14 22:11:07    阅读次数:241
[Leetcode] minimum window substring 最小字符窗口
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). For example,S ="ADOBECODE ...
分类:Windows程序   时间:2017-07-14 22:07:08    阅读次数:278
VB 窗体始终在前
Private Declare Function SetWindowPos& Lib "user32" (ByVal hwnd As Long, _ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, _ByVal cx A ...
分类:Windows程序   时间:2017-07-14 21:19:50    阅读次数:183
VB 删除txt文件的最后一行
Private Sub Command1_Click()DelTxt App.Path & "\1.txt"End SubSub DelTxt(ByVal Path As String) '删除txt文件的最后一行On Error GoTo eHandler:Dim Fc As String, Fn ...
分类:其他好文   时间:2017-07-14 21:16:03    阅读次数:156
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!