- 博客(3)
- 收藏
- 关注
原创 python爬虫/笔记(一)
一、准备1、爬取url:http://www.7724.com/new-hot.html 页面上的排名前13个游戏名称与图片,并把图片下载到电脑本地2、使用的python版本为3.6二、代码#-*-coding:utf-8-*-import requests,time,re,urllibfrom lxml import htmlfrom lxml import etree...
2018-08-23 17:20:16 713 1
原创 SQL基本操作/笔记(一)
1、删除表newpydata:drop table newpydata; 2、查看创建的表字段类型:show create table newtest; 3、向表中添加列项目:alter table newtest add userName char(8);一次添加多个列项目:alter table newtest add (platFrom char(5),sig...
2018-08-22 15:04:55 278
原创 pymysql 连接操作 phpMyAdmin
一、pymysql1、pymysql是支持py3.X的mysql连接库2、安装pymysql:pip install pymysql3、连接数据库需要服务器host二、代码1、连接数据库def connetSql(databaseName): sqlConnect = pymysql.connect( # 连接数据库服务器 user="root"...
2018-08-21 19:02:48 2238
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人