起风了

“路海长 青夜旷 越过群山追斜阳”

python连接mysql

  from __future__ import divisionimport pymysqlcoon = pymysql.connect( host = '',user = 'r',passwd = 'bQ', port =,db = '',charset = '')f =file('ddd.txt')i = 0 p_id_dic = {}lists = []cur = coon.cursor()for line in f: i += 1 chunk = line.strip().split('\t') p_id = ch...

Docker Hello World

docker run 运行一个应用程序 docker run ubuntu:15.10 /bin/echo "Hello world" 镜像ubuntu,版本15.10,Docker 首先从本地主机上查找镜像是否存在,如果不存在,Docker 就会从镜像仓库 Docker Hub 下载公共镜像。 问题本地镜像地址? /Users/{YourUserName}/Library/Containers/com.docker.doc...

MYSQL(三)

上一章给大家说的是数据库的视图,存储过程等等操作,这章主要讲索引,以及索引注意事项,如果想看前面的文章,url如下: MYSQL入门全套(第一部) MYSQL入门全套(第二部) 索引简介  索引是对数据库表中一个或多个列(例如,employee 表的姓名 (name) 列)的值进行排序的结构。如果想按特定职员的姓来查...

Idea 开发 web项目

文章转载于:https://www.cnblogs.com/chaoren399/p/5713563.html 原著是一个有趣的人,若有侵权,请通知删除

Elasticsearch Configuration 中文版

##################### Elasticsearch Configuration Example ###################### This file contains an overview of various configuration settings,# targeted at operations staff. Application developers should# consult the guide at <http://elasticsearch.org/guide>.## The installat...

Python绘图

文章转载于:https://www.cnblogs.com/chaoren399/p/5792168.html 原著是一个有趣的人,若有侵权,请通知删除

12.Linux软件安装 (一步一步学习大数据系列之 Linux)

1.如何上传安装包到服务器 有三种方式: 1.1使用图形化工具,如: filezilla   如何使用FileZilla上传和下载文件 1.2使用 sftp 工具:   在 windows下使用CRT 软件 登录远程服务器后, 快捷键 alt + p 即可进入 SFTP 模式. 在 MAC 下使用CRT 软件 登录服务器后选择 链接 SFTP 如下图即可进入 SFTP 模式. 右键...

python for 循环

  1.  字符数组 # codes = ['166002','163406']for code in codes: print code;     2.    for i in range(10): print(i)   fruits = ['banana', 'apple', 'mango']for index in range(len(fruits)): print '当前水果 :', fruits[index]     for num...