自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 资源 (17)
  • 收藏
  • 关注

原创 Windows下,"No module named 'xlrd' "的解决办法

1. 问题描述 windows10下,python代码中引用头文件import xlrd出现下面错误,"No module named 'xlrd'2. 原因 python的xlrd库是第三方的,需要另外自行安装。3. 解决方案 进入windows command 命令行,然后把目录切换到python的安装目录下的Script文件夹,运行 easy_inatall pip, 安装pip命令利用

2017-11-29 10:49:29 40366 1

原创 Ubuntu下tcpdump使用

1. 安装tcpdump 默认wireshark安装好之后,就有tcpdump工具sudo apt-get install wiresharkwireshark用来分析数据包,而tcpdump用于抓取数据包。2. 启动tcpdump进行抓包 (注意:替换成自己的路径)sudo tcpdump -i eth0 -w /home/user/Documents/test.pcap3. 停止tcpdump

2017-11-28 11:16:19 5364

原创 php访问mysql数据库

1. 连接数据库(config.php)<?phpmysql_connect('localhost', 'root', '');mysql_select_db('test');$createtb = "create table if not exists user( id int(20) primary key auto_increment, username v

2017-11-20 22:59:13 368

原创 php html界面基本组件

1. index.php<!DOCTYPE html><head><title>Index</title></head><body> <form> Name:<input type="text" name="user"/><br/> Password:<input type="password"

2017-11-18 23:22:51 658

原创 利用JpGraph,可视化数据库中的数据

1. 数据库配置文件(创建数据库和表)dbconfig.php文件<?phpmysql_connect('localhost', 'root', '');mysql_select_db('test');$createtb = "create table if not exists user( id int(20) primary key auto_increment,

2017-11-18 11:49:53 1230

原创 PHP之JpGraph作图工具库

Step1: 环境 Windows10 + php5.3(下载) + jpgraph-3.5.0b1(下载)Step2: 开启GD库 打开路径“S:\Xampp\php\php.ini”,打开php.ini文件,找到“;extension=php_gd2.dll”选项,将其前的注释符号“;”去掉。extension=php_gd2.dllStep3: 关键点!!! 在htdocs目录下新建一个

2017-11-17 17:30:30 1497

原创 python 解析域名,连接主机IP

1. 实现代码(test.py)#!/usr/bin/pythonimport socket# 初始信息host = 'www.google.com'port = 80# 解析域名获取IPip = socket.gethostbyname(host)print 'Ip address of ' + host + ' is ' + ip# 通过IP连接主机s = socket.socket

2017-11-14 18:03:15 7967

原创 python seek

1. 定义 seek()方法在偏移设定该文件的当前位置。2. 例子(seek.py)f=open('test.txt','r')print f.readline()f.seek(0,0)print(f.readline())f.seek(1,0)print(f.readline())f.seek(2,0)print(f.readline())f.seek(3,0)print(f.r

2017-11-13 15:42:15 1169

原创 python lambda

1. lambda Python lambda 是为了减少单行函数的定义而存在的,换句话说,多行的函数在python中是不允许使用lambda表达式的。2. 测试案例 (lambda_tests.py)# lambda test 1foo = lambda x:x*7print(foo(5))# lambda test 2def function2(foo = lambda x:x*7):

2017-11-13 10:35:13 343

原创 php post

功能:获取表单form中的变量的值

2017-11-12 16:56:53 469

原创 Python struct pack/unpack

1. struct.pack用于将Python的值根据格式符,转换为字符串, 代码“pack.py”如下,#!/usr/bin/env python import sys import struct # initialization a = 20 b = 400 # packstr = struct.pack("ii", a, b) print 'length: ', l

2017-11-12 11:18:01 1069

hyperledger-fabric-readthedocs-io-en-v2.2.1.pdf

hyperledger-fabric-readthedocs-io-en-v2.2.1

2021-01-27

LibreOffice Draw 之网络图示模板 VRTnetworkequipment_1.2.0-lo

开源软件LibreOffice Draw的网络示意图示模板VRTnetworkequipment_1.2.0-lo,适用于Windows和Linux系统平台

2018-08-01

1999年到2018年香港房地产走势数据

1999年到2018年香港房地产价格变化趋势,包含有时间上,比如,单月数据,季度数据,年数据等;地段上,比如,香港岛,香港九龙,新界等相关数据。

2018-04-02

Socket programming in C

Socket编程 之标准C实现代码

2017-08-04

SHA-3(keccak)之C/C++官方源码

SHA-3(keccak)的官方C/C++源代码

2017-07-29

自动扫描拟合并获取pdf论文图像中的数据

自动并获取PDF图像中的数据(比如自动扫描拟合并获取pdf论文图像中的数据)

2017-07-03

网络端口扫描工具

网络端口扫描工具,用于扫描出指定公网ip下所有的开放的端口

2017-06-29

GeoIP Databases of Country and City

The GeoIP databases (i.e. both country and city) are tools which normally used to determine an Internet visitor's country or city based on their IP address. For more information, users can visit the official website https://dev.maxmind.com/.

2017-06-06

Performance analysis of the Blockchain

This is a report about the performance issues of Blockchian, trying to discuss the problems deeply and propose corresponding methods to solve them. Hope it will be useful to all of you, Blockchain lovers. Contact me freely via my email if any questions. Good luck!

2017-01-19

An introduction to Blockchain that is a supporting technology of Bitcoin.

This is an introduction to Blockchain, a supporting technology of Bitcoin.

2017-01-03

Linux Kervel Version 1.0 (open source)

The attachment is Linux kernel of Version 1.0, an open source. For more information, you may refer to https://www.kernel.org/pub/linux/kernel/

2017-01-03

GPU与MATLAB混合编程之书本实现代码

本资源主要是《GPU与MATLAB混合编程》书中的所有的例子的实现代码。对于购买了这本书的同学会有找不到书中源代码的情况,这时候,您就可以下载本代码集合,本代码集合拥有完整的书中的所有例子的代码。

2016-07-15

Totem拓扑数据

内部包含有TOTEM使用的网络拓扑数据,数据以.mat格式进行保存,可以通过matlab命令gplot(dist,position,'-o')直接显示网络拓扑结果,方便后续的自主编程操作。

2016-05-25

TOTEM使用帮助

TOTEM使用帮助

2016-05-11

空空如也

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

TA关注的人

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