摘要:
0 a 女 10.01 a 男 10.02 b 男 4.03 c 女 3.04 c 男 11.0 阅读全文
摘要:
import cv2import numpy as nppath = "test2.jpg"img = cv2.imread(path)height, width, depth = img.shape[0:3]# 图片二值化处理,把[240, 240, 240]~[255, 255, 255]以外的 阅读全文
摘要:
import osimport rebaseDir = "/Users/huangzhipeng/Desktop"def get_email(path): f = open(path, 'r', encoding="utf-8") content = f.read() # mail_re = re. 阅读全文
摘要:
Java JDK在linux系统有两个版本,一个开源版本Openjdk,还有一个oracle官方版本jdk,oracle JDK既可以通过添加ppa源命令行安装,也可以去官网下载jdk压缩包安装。下面分别记录一下这三种安装方式的步骤。 安装openjdk1、更新软件包列表: sudo apt-get 阅读全文
摘要:
<!DOCTYPE html><html><head><meta content="text/html; charset=UTF-8" http-equiv="content-type"><title>Smart Home - Camera</title><link href="css/main.c 阅读全文
摘要:
# -*- coding:utf-8 -*-import timeimport jsonimport uuidimport tracebackimport requestsimport datetimeimport osimport randomfrom utils.qiniu_util impor 阅读全文
摘要:
Pandas是一个开源的Python数据分析库。Pandas把结构化数据分为了三类: Series,1维序列,可视作为没有column名的、只有一个column的DataFrame; DataFrame,同Spark SQL中的DataFrame一样,其概念来自于R语言,为多column并schem 阅读全文
摘要:
1、登陆mysql数据库 mysql -u root -p 查看user表 mysql> use mysql;Database changedmysql> select host,user,password from user;+ + + +| host | user | password |+ + 阅读全文
摘要:
N757JE0KCT-eyJsaWNlbnNlSWQiOiJONzU3SkUwS0NUIiwibGljZW5zZWVOYW1lIjoid3UgYW5qdW4iLCJhc3NpZ25lZU5hbWUiOiIiLCJhc3NpZ25lZUVtYWlsIjoiIiwibGljZW5zZVJlc3RyaWN 阅读全文
摘要:
# -*- coding:utf-8 -*-__version__ = '1.0.0.0'"""@brief : 简介@details: 详细信息@author : zhphuang@date : 2019-02-22"""import osimport timeimport randomimpor 阅读全文
摘要:
依山傍水房树间,行也安然,住也安然; 一条耕牛半顷田,收也凭天,荒也凭天; 雨过天晴驾小船,鱼在一边,酒在一边; 夜晚妻子话灯前,今也谈谈,古也谈谈; 日上三竿犹在眠,不是神仙,胜似神仙! 阅读全文
摘要:
1.vue init airyland/vux2 web_music 2.cd web_muisc 3.npm install 4.npm run dev 阅读全文
摘要:
安装的 ubuntu 16.04server 版本默认没有中文支持的,要支持中文,需要安装中文字库。 我们先安装中文字库: sudo apt-get install language-pack-zh-hans1安装完后有如下提示: Generating locales… zh_CN.UTF-8… d 阅读全文
摘要:
1.场景,对于colums都相同的dataframe做过滤的时候 例如: 阅读全文
摘要:
突然发现百度的API越来越好用了,简单使用百度API精准定位IP地址。附Python代码 分类:Python (4778) (5) 分类:Python (4778) (5) 2016年11月27日08:13:13API服务地址:http://lbsyun.baidu.com/index.php?ti 阅读全文
摘要:
[python] view plain copy #encoding=gbk import urllib import sys import re import pinyin city_info=urllib.urlopen( 'http://pv.sohu.com/cityjson').read( 阅读全文
摘要:
# For more information on configuration, see:# * Official English Documentation: http://nginx.org/en/docs/# * Official Russian Documentation: http://n 阅读全文
摘要:
1.多表连接查询:感觉django太NX了。 class A(models.Model): name = models.CharField(u'名称') class B(models.Model): aa = models.ForeignKey(A)B.objects.filter(aa__name 阅读全文
摘要:
python 字典(dict)的特点就是无序的,按照键(key)来提取相应值(value),如果我们需要字典按值排序的话,那可以用下面的方法来进行:1 下面的是按照value的值从大到小的顺序来排序。dic = {'a':31, 'bc':5, 'c':3, 'asd':4, 'aa':74, 'd 阅读全文
摘要:
python中的struct主要是用来处理C结构数据的,读入时先转换为Python的字符串类型,然后再转换为Python的结构化类型,比如元组(tuple)啥的~。一般输入的渠道来源于文件或者网络的二进制流。 1.struct.pack()和struct.unpack() 在转化过程中,主要用到了一 阅读全文