我就是个five
码龄8年
关注
提问 私信
  • 博客:13,824
    13,824
    总访问量
  • 14
    原创
  • 1,853,641
    排名
  • 1
    粉丝
  • 0
    铁粉

个人简介:辣鸡考研er

IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:湖南省
  • 加入CSDN时间: 2017-03-22
博客简介:

qq_38013105的博客

查看详细资料
个人成就
  • 获得7次点赞
  • 内容获得0次评论
  • 获得15次收藏
创作历程
  • 16篇
    2019年
  • 4篇
    2018年
成就勋章
TA的专栏
  • lintcode刷题
    6篇
  • 数据结构作业题
    2篇
  • python 爬虫
    4篇
  • github模拟登入
    1篇
  • git指令
  • spark mlib
    2篇
兴趣领域 设置
  • 大数据
    hadoophivestormspark
创作活动更多

如何做好一份技术文档?

无论你是技术大神还是初涉此领域的新手,都欢迎分享你的宝贵经验、独到见解与创新方法,为技术传播之路点亮明灯!

178人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

Linux Centos 6.5网络启动不起来Bringing up interface eth0: Error:Connection activation failed:Device not man

1. Remove Network Manager from startup Services.#chkconfig NetworkManager off2. Add Default Net Manager#chkconfig network on3.Stop NetworkManager first#service NetworkManager stop4.and then star...
转载
发布博客 2019.04.01 ·
516 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

5:只出现一次的数字

def singleNumber(): """ :type nums: List[int] :rtype: int """ nums = [1,3,3,5,5] print(2*sum(set(nums))-sum(nums))if __name__ == '__main__': singleNumber()很好理解, 2*...
原创
发布博客 2019.03.24 ·
177 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

4:存在重复

# def containsDuplicate():# """# :type nums: List[int]# :rtype: bool# """# nums = [1,1,3,4]# return len(nums) > len(set(nums))# if __name__ == '__main__':# ...
原创
发布博客 2019.03.24 ·
151 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

9:两数之和(python)

def twoSum(nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ # 创建一个空字典 键为需要值,值为下标 d = {} for x in range(len(nums)): a = target -...
原创
发布博客 2019.03.24 ·
450 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

3: 旋转数组(python)

class Solution(object): def rotate(self, nums, k): """ :type nums: List[int] :type k: int :rtype: None Do not return anything, modify nums in-place instead. ...
原创
发布博客 2019.03.24 ·
172 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

2:买卖股票的最佳时机 II(python)

def maxProfit(prices): """ :type prices: List[int] :rtype: int """ profit = 0 i = 0 while i < len(prices) - 1: if prices[i+1] > prices[i]: prof...
原创
发布博客 2019.03.24 ·
307 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

1:从排序数组中删除重复项(python)

nums=[1,2,3,3,3,5]j = 0 //定义以一个下标j 用它来存放数组不相同的元素for i in range(len(nums)): if nums[i] != nums[j]: //如果不相等 ,数组 j+1下标就把 那个不相等的数存起来,这样就是实现了 删除重复项 nums[j+1] = ...
原创
发布博客 2019.03.24 ·
231 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

spark mlib NaiveBayes 笔记

import org.apache.log4j.{Level, Logger}import org.apache.spark.mllib.classification.{NaiveBayes, NaiveBayesModel}import org.apache.spark.mllib.linalg.Vectorsimport org.apache.spark.mllib.regressio...
翻译
发布博客 2019.03.24 ·
177 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

pandas 参数详解:

读取CSV(逗号分割)文件到DataFramefilepath_or_buffer: str,pathlib。str, pathlib.Path, py._path.local.LocalPath or any object with a read() method (such as a file handle or StringIO)可以是URL,可用URL类型包括:http, ...
转载
发布博客 2019.03.17 ·
3085 阅读 ·
1 点赞 ·
0 评论 ·
5 收藏

Python中的TfidfVectorizer参数解析

input:string{'filename', 'file', 'content'}如果是'filename',序列作为参数传递给拟合器,预计为文件名列表,这需要读取原始内容进行分析如果是'file',序列项目必须有一个”read“的方法(类似文件的对象),被调用作为获取内存中的字节数否则,输入预计为序列串,或字节数据项都预计可直接进行分析。enco...
转载
发布博客 2019.03.17 ·
1391 阅读 ·
0 点赞 ·
0 评论 ·
5 收藏

模拟登入教务处

获取验证码 import requests import random from PIL import Image headers = { 'User-Agent...
原创
发布博客 2019.03.14 ·
2616 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

模拟登入github

获取验证码 import requests import random from PIL import Image headers = { 'User...
原创
发布博客 2019.03.14 ·
286 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

正则笔记

###学了会儿正则表达式,怕记不住,就记下来了 1:\d 字符串中的整数 2:\D 匹配所有的非数字字符 3:re.findall(‘a[cd]c’)匹配 acd adc ...
原创
发布博客 2019.03.14 ·
106 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

git 指令集合

# GitHub创建仓库提示代码 echo "# 项目名" &gt;&gt; README.md git init git add README.md git commit -m "first commit" git remote add origin git@github.com:qiubaiying/项目名.git git push -...
原创
发布博客 2019.03.14 ·
120 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

今日头条街拍图片爬取

import os import requests from urllib.parse import urlencode from hashlib import md5 from multiprocessing.pool import Pool GROUP_START = 1 GROUP_END = ...
原创
发布博客 2019.03.14 ·
218 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Spring以及其优缺点。

什么是springSpring 是一个开源框架,是为了解决企业应用程序开发复杂性而创建的。 ... 在这篇由三部分组成的Spring系列的第1 部分中,我将介绍Spring框架。 我先从框架底层模型的角度描述该框架的功能,然后将讨论两个最有趣的模块:Spring面向方面编程(AOP)和控制反转(IOC)Spring 优点1.使用Spring的IOC容器,将对象之间的依赖关系交给Sp...
转载
发布博客 2019.03.14 ·
283 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

关于字符串输入问题

学C++的时候,这几个输入函数弄的有点迷糊;这里做个小结,为了自己复习,也希望对后来者能有所帮助,如果有差错的地方还请各位多多指教(本文所有程序均通过VC 6.0运行)1、cin 2、cin.get() 3、cin.getline() 4、getline() 5、gets() 6、getchar()附:cin.ignore();cin.get();//跳过一个字符,例如不想要的回车,空格等字符1、...
转载
发布博客 2018.05.18 ·
261 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

单链表删除所有值为key的删除操作

#include&lt;iostream&gt;#include&lt;cstdlib&gt;using  namespace std;  typedef struct node{  node *next;  int data;}*List;  void init(List *L){ *L=new node;  (*L)-&gt;next=NULL;}// void DeleteList...
原创
发布博客 2018.05.18 ·
2931 阅读 ·
1 点赞 ·
0 评论 ·
5 收藏

不用‘+’号求 a+b 小白创作 错误请指出 轻喷!!!

class Solution {public:    int aplusb(int a, int b) {    while(b != 0){              int  up= a &amp; b;            a = a ^ b;            b = (up &lt;&lt; 1);       }        return a;    }}; 之前没有看过位运,...
原创
发布博客 2018.05.18 ·
219 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

单链表的基本操作

#include&lt;iostream&gt;#include&lt;cstdio&gt;#include&lt;cstdlib&gt;  using namespace std; typedef struct node {  struct node *next;  int data; }*List;  void initList(List *L) {  *L=(node*)malloc(siz...
原创
发布博客 2018.05.17 ·
126 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏
加载更多