上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页
摘要: import win32api import win32con import win32gui from ctypes import * import time VK_CODE = { 'backspace':0x08, 'tab':0x09, 'clear':0x0C, 'enter':0x0D, 'shift':0x10, 'ctrl':0x11, 'alt':0x12, '... 阅读全文
posted @ 2016-10-24 22:32 疯陈演义 阅读(8011) 评论(0) 推荐(0) 编辑
摘要: 1、导入两个数据分析重要的模块import numpy as npimport pandas as pd2、创建一个时间索引,所谓的索引(index)就是每一行数据的id,可以标识每一行的唯一值dates = pd.date_range('20161024',periods=6)3、创建一个6X4的 阅读全文
posted @ 2016-10-24 10:56 疯陈演义 阅读(736) 评论(0) 推荐(0) 编辑
摘要: import chardet import urllib.request url='http://stock.sohu.com/news/' html = urllib.request.urlopen(url).read() chardit1 = chardet.detect(html) print(chardit1['encoding']) 阅读全文
posted @ 2016-10-14 12:53 疯陈演义 阅读(249) 评论(0) 推荐(0) 编辑
摘要: #从500彩票网站下载双色球历史数据,网页另存为01.txt data = [] file = open('01.txt') for line in file: line = line.lstrip() line = line.strip('\n') line = line.split(' ')[0] if len(line)==19 or len(line)==... 阅读全文
posted @ 2016-10-13 20:46 疯陈演义 阅读(2347) 评论(0) 推荐(0) 编辑
摘要: 1、pip install lxml 2、pip install pandas 3、pip install requests 4、pip install lxml 5、pip install tushare 升级参数后加--upgrade 阅读全文
posted @ 2016-10-13 11:34 疯陈演义 阅读(2900) 评论(0) 推荐(0) 编辑
摘要: import pymysql db = pymysql.connect('localhost','root','anotherone','czx') cur = db.cursor() #插入 #cur.execute('insert game values (NULL,"Tom",26,90,50,500,94)') #更新 #cur.execute("update game set n... 阅读全文
posted @ 2016-10-12 20:26 疯陈演义 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1、登录数据库。 mysql -uroot -pxxxx -h127.0.0.1 -P3306 --prompt xxx prompt xxx可更改提示符 \D表示完整的日期; \d表示当前数据库;\h服务器名称;\u当前用户。 2、显示 select version(); 显示版本 select 阅读全文
posted @ 2016-09-30 08:18 疯陈演义 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 1. 配置环境变量 1.1 添加path路径 选择 控制面板>系统和安全>系统>高级系统设置>环境变量 mysql文件目录的绝对路径\bin 1.2 修改mysql default.ini 配置文件 2. 以管理员身份进入命令行cmd 进入mysql的bin目录下 3. mysqld --initi 阅读全文
posted @ 2016-09-29 11:08 疯陈演义 阅读(762) 评论(0) 推荐(0) 编辑
摘要: 1、连接Mysql 格式: mysql -h主机地址 -u用户名 -p用户密码1、连接到本机上的MYSQL。 首先打开DOS窗口,然后进入目录mysql\bin,再键入命令mysql -u root -p,回车后提示你输密码.注意用户名前可以有空格也可以没有空格,但是密码前必须没有空格,否则让你重新 阅读全文
posted @ 2016-09-28 09:16 疯陈演义 阅读(312) 评论(0) 推荐(0) 编辑
摘要: MySQL 绿色版安装配置教程一、下载,这里使用绿色免安装版1.网上搜索mysql绿色免安装版下载即可。提供官网地址 http://dev.mysql.com/downloads/mysql ps:需要登录oracle账户,自行注册。2.或者可下载笔者提供的较新版mysql-5.6.24(64位和3 阅读全文
posted @ 2016-09-27 20:01 疯陈演义 阅读(541) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页