从零开始学网络爬虫之数据区MySQL
来源:互联网 发布:二叉树反转 java 编辑:程序博客网 时间:2024/04/19 05:03
import MySQLdbconn=MySQLdb.Connect(host='localhost',user='root',passwd='')cursor =conn.cursor()cursor.execute('create database if not exists student')#conn.commit()conn.select_db('student')cursor =conn.cursor()sql = "create table if not exists test1(name varchar(128), age int(4))" #cursor.execute(sql)##cursor =conn.cursor()sql = "insert into test1(name, age) values ('%s', %d)" % ("zhaowei", 23)try: cursor.execute(sql)except Exception, e: print e
0 0
- 从零开始学网络爬虫之数据区MySQL
- 从零开始学网络爬虫之Requests库
- 从零开始学网络爬虫之BeautifulSoap
- 从零开始学网络爬虫之selenium/phantomjs
- 从零开始学网络爬虫之json
- 从零开始学python网络爬虫
- 从零开始学网络爬虫之代理IP池
- 从零开始学网络爬虫之多进程
- python网络爬虫-数据存储之MySQL
- 从零开始学爬虫(一)
- 跟着《Python网络数据采集》学爬虫1
- 跟着《Python网络数据采集》学爬虫2
- 从零开始学Python学习笔记---之--pandas数据框(1)
- 从零开始学Python学习笔记---之--pandas数据框(2)
- 从零开始学Python学习笔记---之--pandas数据框(3)
- python网络爬虫-数据存储之媒体文件
- python网络爬虫-数据存储之CSV
- python网络爬虫-数据采集之遍历单个爬虫
- Java编译器的行为------第一节:方法
- Activity和Fragment的数据传递
- U1077:error C:\Windows\System32\cscript.exe return code 1 wince7编译很变态的问题
- mybatis 最简单的执行自定义SQL语句
- 如何使用Git上传项目代码到github
- 从零开始学网络爬虫之数据区MySQL
- Log4j2配置之Appenders
- 获取当前cell
- 最大正数pascal程序
- adr ldr
- Activity和Activity带参数跳转 带参数返回
- Oracle 定时任务遇到的问题
- 光线投影算法
- QString与char *的转换