<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[小拳头的博客]]></title><description><![CDATA[临渊羡鱼、不如退而结网]]></description><link>https://blog.csdn.net/xiaoquantouer</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; xiaoquantouer]]></copyright><item><title><![CDATA[第三期学习总结]]></title><link>https://blog.csdn.net/xiaoquantouer/article/details/100082395</link><guid>https://blog.csdn.net/xiaoquantouer/article/details/100082395</guid><author>xiaoquantouer</author><pubDate>Mon, 26 Aug 2019 18:14:12 +0800</pubDate><description><![CDATA[跌跌撞撞一年时间，终于开始写第三期了 ，其实这一期的内容早就有了，只不过一直没有放到博客上。不能停下学习的脚步，要继续前进呀！

1、JSON unmarshal map的结果是不确定的

测试代码：


package main

import (
        "encoding/json"
        "log"
)

const str = `{"a":"aaaa","b":"baa...]]></description><category></category></item><item><title><![CDATA[第二期学习总结]]></title><link>https://blog.csdn.net/xiaoquantouer/article/details/84994151</link><guid>https://blog.csdn.net/xiaoquantouer/article/details/84994151</guid><author>xiaoquantouer</author><pubDate>Thu, 13 Dec 2018 20:26:51 +0800</pubDate><description><![CDATA[1、json Unmarshal

struct中如果变量首字母是小写的，那么unmarshal后的值都是空的，所以struct的变量首字母必须大写。


package main

import (
	&quot;encoding/json&quot;
	&quot;fmt&quot;
)

type data struct {
	Age         int    `json:&quot;age&quot;`
	Name        string ...]]></description><category></category></item><item><title><![CDATA[第一期学习总结]]></title><link>https://blog.csdn.net/xiaoquantouer/article/details/83450670</link><guid>https://blog.csdn.net/xiaoquantouer/article/details/83450670</guid><author>xiaoquantouer</author><pubDate>Sat, 27 Oct 2018 23:06:42 +0800</pubDate><description><![CDATA[在工作的过程中，不断听到新名词，新概念，新方法。觉得是时候总结一波知识点记录下来，促进深入了解的同时，便于以后复习。非常喜欢阮老师的每周分享，但是做不到像他一样每周去浏览那么多东西，而且总能发现很有趣的知识点。现在期望可以做到双月一总结，有些知识点可能还是没有那么深入理解，希望能坚持下来，在工作的同时慢慢进步，也是相当不错了。原本于国庆前就有此计划，并写好了初稿，中间各种原因，又推迟了一个月。= ...]]></description><category></category></item><item><title><![CDATA[2018年书单]]></title><link>https://blog.csdn.net/xiaoquantouer/article/details/80546571</link><guid>https://blog.csdn.net/xiaoquantouer/article/details/80546571</guid><author>xiaoquantouer</author><pubDate>Sat, 02 Jun 2018 16:55:03 +0800</pubDate><description><![CDATA[
入职一个多月了，从学生步入社会，越发的感觉时间是多么重要。作为程序媛，除了工作时间，课余更需要补充很多非计算机方面的知识。基于最近的糟糕状态，还是决定延用之前的习惯订下计划，继续以书单的形式鞭策自己进行阅读。

刚刚进入6月份，所以从这个月开始吧。

----2018.6.2：补充《5月份书单》


1、《GO程序设计语言》



作者：艾伦 A.A. 多诺万

出版社：机械工业出版社

进度：...]]></description><category></category></item><item><title><![CDATA[golang中在遍历数组时，要修改数组中变量无法修改成功的问题]]></title><link>https://blog.csdn.net/xiaoquantouer/article/details/80392656</link><guid>https://blog.csdn.net/xiaoquantouer/article/details/80392656</guid><author>xiaoquantouer</author><pubDate>Mon, 21 May 2018 15:20:13 +0800</pubDate><description><![CDATA[记录在写go时遇到的一个小坑例子：package main

import (
	&quot;fmt&quot;
)

type UserInfo struct {
	Name 	string 		`json:&quot;name&quot;`
	UserId 	int 		`json:&quot;user_id&quot;`
}

type Message struct {
	Type string `json:&quot;type&quot;`
	Id	int `json...]]></description><category></category></item><item><title><![CDATA[golang中struct、json、map互相转化]]></title><link>https://blog.csdn.net/xiaoquantouer/article/details/80233177</link><guid>https://blog.csdn.net/xiaoquantouer/article/details/80233177</guid><author>xiaoquantouer</author><pubDate>Mon, 07 May 2018 23:14:14 +0800</pubDate><description><![CDATA[一、Json和struct互换（1）Json转struct例子：package main

import (
        &quot;fmt&quot;
        &quot;encoding/json&quot;
)

type People struct {
        Name string `json:&quot;name_title&quot;`
        Age int `json:&quot;age_size&quot;`
}

func J...]]></description><category></category></item><item><title><![CDATA[mac上安装go环境]]></title><link>https://blog.csdn.net/xiaoquantouer/article/details/79985650</link><guid>https://blog.csdn.net/xiaoquantouer/article/details/79985650</guid><author>xiaoquantouer</author><pubDate>Wed, 18 Apr 2018 11:27:13 +0800</pubDate><description><![CDATA[一、安装Homebrew安装命令：ruby -e &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)&quot;Homebrew的使用：（1）安装软件：brew install 软件名，例如：brew install wget（2）搜索软件：brew search 软件名（3）卸载软件：brew u...]]></description><category></category></item><item><title><![CDATA[【leetcode】771. Jewels and Stones]]></title><link>https://blog.csdn.net/xiaoquantouer/article/details/79261524</link><guid>https://blog.csdn.net/xiaoquantouer/article/details/79261524</guid><author>xiaoquantouer</author><pubDate>Mon, 05 Feb 2018 16:33:51 +0800</pubDate><description><![CDATA[一、题目描述


You're given strings J representing the types of stones that are jewels, and S representing
 the stones you have.  Each character in S is a type of stone you have.  You want to know how m]]></description><category></category></item><item><title><![CDATA[python踩过的一些坑]]></title><link>https://blog.csdn.net/xiaoquantouer/article/details/78731709</link><guid>https://blog.csdn.net/xiaoquantouer/article/details/78731709</guid><author>xiaoquantouer</author><pubDate>Wed, 06 Dec 2017 16:33:23 +0800</pubDate><description><![CDATA[找完工作，又开始忙于做毕设，很久没更新博客了，不过博客新上线的这个新界面太不好用了，分类下只有两篇文章，每次点击进去都出现很多篇其他类的，每次找一篇博文都要翻很久。体验真是极差。


废话不多说，先记几个做毕设过程中发现的小坑


1、jieba分词生成迭代器，在第二次for循环会失效
测试代码：




用jieba分词生成的word_list是个迭代器，第二个for里面]]></description><category></category></item><item><title><![CDATA[nSum系列题目总结]]></title><link>https://blog.csdn.net/xiaoquantouer/article/details/78076764</link><guid>https://blog.csdn.net/xiaoquantouer/article/details/78076764</guid><author>xiaoquantouer</author><pubDate>Sun, 24 Sep 2017 14:34:37 +0800</pubDate><description><![CDATA[1、Two Sum
原题地址：https://leetcode.com/problems/two-sum/description/
题目描述：

Given an array of integers, return indices of the two numbers such that they add up to a specific target.


You may assu]]></description><category></category></item><item><title><![CDATA[关于剑指offer上“二叉搜索树与双向链表”题的理解]]></title><link>https://blog.csdn.net/xiaoquantouer/article/details/77963378</link><guid>https://blog.csdn.net/xiaoquantouer/article/details/77963378</guid><author>xiaoquantouer</author><pubDate>Wed, 13 Sep 2017 11:36:31 +0800</pubDate><description><![CDATA[题目描述：
输入一棵二叉搜索树，将该二叉搜索树转换成一个排序的双向链表。要求不能创建任何新的结点，只能调整树中结点指针的指向。



一、递归的思路
对于函数TreeNode* Convert(TreeNode* root)，传入的是需要转换的二叉树的头结点，返回的是已经转换好的双向链表的头结点。从root结点来看，以递归的思路就是将左孩子和右孩子做黑盒处理，left = Conver]]></description><category></category></item><item><title><![CDATA[关于剑指offer上“从1到n整数中1出现的次数”题的理解]]></title><link>https://blog.csdn.net/xiaoquantouer/article/details/77951782</link><guid>https://blog.csdn.net/xiaoquantouer/article/details/77951782</guid><author>xiaoquantouer</author><pubDate>Tue, 12 Sep 2017 23:12:36 +0800</pubDate><description><![CDATA[写这篇博客是因为，看完剑指offer上这道题的解释后，我确实是没有看懂。所以按照我的思路重新描述一下这道题到底要怎么做。


题目描述：
输入一个整数n，求从1到n这n个整数的十进制表示中1出现的次数


首先想到的肯定是暴力法，这里就不多说了。
更优化的方法需要我们先列举几个数来找找规律。
假设用i表示当前的数位
（1）当i位为0时，比如12034，显然当前位是第三位，那么第]]></description><category></category></item><item><title><![CDATA[【leetcode】【套路题】476. Number Complement]]></title><link>https://blog.csdn.net/xiaoquantouer/article/details/77188423</link><guid>https://blog.csdn.net/xiaoquantouer/article/details/77188423</guid><author>xiaoquantouer</author><pubDate>Tue, 15 Aug 2017 14:12:48 +0800</pubDate><description><![CDATA[一、题目描述


Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation.

Note:


The given integer is guaranteed to fit withi]]></description><category></category></item><item><title><![CDATA[【leetcode】627. Swap Salary]]></title><link>https://blog.csdn.net/xiaoquantouer/article/details/77185632</link><guid>https://blog.csdn.net/xiaoquantouer/article/details/77185632</guid><author>xiaoquantouer</author><pubDate>Tue, 15 Aug 2017 11:21:45 +0800</pubDate><description><![CDATA[一、题目描述


Given a table salary, such as the one below, that has m=male and f=female values.
 Swap all f and m values (i.e., change all f values to m and vice versa) with a single update query and n]]></description><category></category></item><item><title><![CDATA[【leetcode】617. Merge Two Binary Trees]]></title><link>https://blog.csdn.net/xiaoquantouer/article/details/77184864</link><guid>https://blog.csdn.net/xiaoquantouer/article/details/77184864</guid><author>xiaoquantouer</author><pubDate>Tue, 15 Aug 2017 11:00:51 +0800</pubDate><description><![CDATA[一、题目描述Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are not.You need to merge them into a new binary ...]]></description><category></category></item><item><title><![CDATA[【leetcode】461. Hamming Distance]]></title><link>https://blog.csdn.net/xiaoquantouer/article/details/77184500</link><guid>https://blog.csdn.net/xiaoquantouer/article/details/77184500</guid><author>xiaoquantouer</author><pubDate>Tue, 15 Aug 2017 10:26:39 +0800</pubDate><description><![CDATA[一、题目描述


The Hamming distance between two integers is the number of positions at which
 the corresponding bits are different.

Given two integers x and y,
 calculate the Hamming distance.

No]]></description><category></category></item><item><title><![CDATA[【leetcode】657. Judge Route Circle]]></title><link>https://blog.csdn.net/xiaoquantouer/article/details/77183786</link><guid>https://blog.csdn.net/xiaoquantouer/article/details/77183786</guid><author>xiaoquantouer</author><pubDate>Tue, 15 Aug 2017 10:16:38 +0800</pubDate><description><![CDATA[一、题目描述


Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to the original place.

The move sequence is ]]></description><category></category></item><item><title><![CDATA[redis的安装和配置]]></title><link>https://blog.csdn.net/xiaoquantouer/article/details/77150069</link><guid>https://blog.csdn.net/xiaoquantouer/article/details/77150069</guid><author>xiaoquantouer</author><pubDate>Sun, 13 Aug 2017 21:04:41 +0800</pubDate><description><![CDATA[一、安装redis
（1）Ubuntu下安装
获得管理员权限后使用

apt-get install redis-server

安装完成后，redis服务器会自动启动，我们检查redis服务器程序

ps -aux | grep redis

# 通过启动命令检查redis服务器状态

netstat -nlt | grep 6379

（2）Mac下安装
brew]]></description><category></category></item><item><title><![CDATA[网络分析工具]]></title><link>https://blog.csdn.net/xiaoquantouer/article/details/77132241</link><guid>https://blog.csdn.net/xiaoquantouer/article/details/77132241</guid><author>xiaoquantouer</author><pubDate>Sun, 13 Aug 2017 00:30:16 +0800</pubDate><description><![CDATA[在后台开发中网络通信这一块非常重要，在处理定位问题或者多方联调时，需要用到网络分析工具。这里学习一下ping、tcpdump、netstat和lsof这4个网络分析工具的使用。
1 ping
2 tcpdump
3netstat
4 lsof1、 ping介绍：ping（Packet Internet Groper，因特网包探索器）是Windows、UNIX和Linux系统下的一个命令。ping也属]]></description><category></category></item><item><title><![CDATA[网络编程知识点梳理]]></title><link>https://blog.csdn.net/xiaoquantouer/article/details/76762131</link><guid>https://blog.csdn.net/xiaoquantouer/article/details/76762131</guid><author>xiaoquantouer</author><pubDate>Sun, 06 Aug 2017 11:42:38 +0800</pubDate><description><![CDATA[1 你怎么理解HTTP协议
2 HTTP和HTTPS的区别
3 ISO七层网络模型五层网络模型TCPIP四层网络模型
4 TCP和UDP的区别
5 同步和异步阻塞和非阻塞长线程和短线程的区别
6 现在要访问wwwbaiducom整个过程是怎样的
6 IPTCP首部
7 TCP三次握手及四次挥手
8 DNS是什么本机使用DNS时是TCP连接还是UDP
10 TCP如何保证可靠性1、 你怎么理解HTTP]]></description><category></category></item></channel></rss>