- 博客(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
原创 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
2021-01-27
LibreOffice Draw 之网络图示模板 VRTnetworkequipment_1.2.0-lo
2018-08-01
1999年到2018年香港房地产走势数据
2018-04-02
GeoIP Databases of Country and City
2017-06-06
Performance analysis of the Blockchain
2017-01-19
An introduction to Blockchain that is a supporting technology of Bitcoin.
2017-01-03
Linux Kervel Version 1.0 (open source)
2017-01-03
GPU与MATLAB混合编程之书本实现代码
2016-07-15
Totem拓扑数据
2016-05-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人