- 博客(2)
- 收藏
- 关注
原创 python针对mysql长文本一分多行
#!/usr/bin/python# -*- coding: UTF-8 -*-import MySQLdbdb = MySQLdb.connect("localhost","root","123456","job_5_9",charset='utf8')cursor = db.cursor()sql = "select id,name,sex from court_ktgg_towash7_3_...
2018-06-06 10:28:10
1677
原创 python读取excle文件入库
# -*- coding: utf-8 -*-#将excle表中的数据导入mysql数据库中import MySQLdbimport osimport xlrdli = ["2013年xxx公示表"]#定义列表存放表文件名for ex in li: lj = r"C:\内网通接受的文件\28_3_2_1\{}.xls".format(ex) #路径 book = xlrd.open...
2018-06-06 10:16:48
771
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人