自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 c++ sort 类的一点区别

#include "stdafx.h"#include#include#include#include using namespace std;bool compare(const string &a, const string &b){ return a > b;}bool cmp(const int &a, const int &b){ return

2017-08-31 23:39:56 1986

原创 python 多线程 实现端口扫描

# -*- coding: utf-8 -*-#!/usr/bin/python2from socket import *import threading lock = threading.Lock()openNum = 0 def portScanner(host,port): global openNum try: s = socket(A

2017-08-31 00:42:03 3267

原创 Python 单线程 多线程

早期的操作系统处理问题都是单任务的,同时只能执行一个任务,按顺序执行。#coding=utf-8import threadingfrom time import ctime,sleep,clockdef music(func): for i in range(2): print "I was listening to %s. %s" %(func,c

2017-08-30 15:45:43 304

原创 OpenCV + Python Harris角点检测

原图:Harris角点检测:# -*- coding: utf-8 -*-import cv2import numpy as npfilename = 'C:\\Users\\kai\\Pictures\\rock2.bmp'# C:\\Users\\kai\\Pictures\\sample\\13.bmpimg = cv2.imrea

2017-08-29 22:09:47 653

原创 struct (指针题)不能正确输出hello

123456789101112131415161718192021222324252627#includestructstr_t{   long

2017-08-29 17:01:52 536

原创 结构体struct union -大端小段

1:大端与小端?与寻常习惯的区别? 大端:高地址存储低位字节。 小端:低地址存储低位字节。 如对于数据0x1234,其32位为0x00001234。 对于大端来说:(地址由低到高存储)00 00 12 34 对于小端来说:(地址由低到高存储)34 12 00 00 由此可以得出结论:大端的存储方式与寻常习惯相一致,而小端的存储方式为按照字节倒排。在一个64位

2017-08-29 16:37:56 930

原创 【LeetCode】 best-time-to-buy-and-sell-stock-i ii iii iv

best-time-to-buy-and-sell-stockSay you have an array for which the i th element is the price of a given stock on day i.If you were only permitted to complete at most one transaction (ie, buy

2017-08-19 21:20:27 505

原创 c++ 指针,char*[]c,char**cp[],char***cpp

输出:WORLD,LO,HI,EW第一个printf:由于char***cpp,可以读成cpp为一个指向char**类型的指针,并且初始化为cp,而cp是一个指针数组,数组里面存储的类型为char**,也就是cpp指向cp[0],故*cpp=cp[0];因此++cpp使得cpp指向cp[1],故*++cpp=cp[1];而cp[1]是一个指向c[2]的指针,因此*cp[1] = c[2

2017-08-17 10:42:48 1838 2

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除