会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
湖北哥哥
博客园
首页
新随笔
联系
管理
订阅
2018年7月20日
身份证校验是否合规
摘要: 正则表达式
阅读全文
posted @ 2018-07-20 17:02 湖北哥哥
阅读(1222)
评论(0)
推荐(0)
2018年4月8日
【4.8日求质数】
摘要: '''create by henryzkffilename 4-2.pydate 20180408function 求质数''' # -*- coding: UTF-8 -*- num=[];i=2for i in range(2,100): j=2 for j in range(2,int(i/2
阅读全文
posted @ 2018-04-08 16:16 湖北哥哥
阅读(138)
评论(0)
推荐(0)
2018年3月30日
3月31日【进度条控制】
摘要: 3月31日【进度条控制】一、简单版# -* - coding: UTF-8 -* -#filename jindutiao.py#create by henryzkf 20180331 succimport timefor i in range(10): time.sleep(1) #每秒打印一次
阅读全文
posted @ 2018-03-30 16:49 湖北哥哥
阅读(228)
评论(0)
推荐(0)
3月30日 【更改写入EXCEL】
摘要: # -* - coding: UTF-8 -* -#create by henryzkf 20180330 succimport xlrd,xlwt,xlutils,osfrom xlrd import open_workbookfrom xlutils.copy import copydef mo
阅读全文
posted @ 2018-03-30 09:15 湖北哥哥
阅读(179)
评论(1)
推荐(0)
2018年3月29日
3月28日 【从EXCEL读取输入数据库】
摘要: #从excel读取数据写入mysqldef excel_to_mysql(filename): ip = '133.0.186.3' port = 11521 SID = 'BILLDB' dsn_tns = ora.makedsn(ip, port, SID) conn = ora.connect
阅读全文
posted @ 2018-03-29 13:43 湖北哥哥
阅读(159)
评论(0)
推荐(0)
2018年3月26日
3月26日 【读写EXCEL】
摘要: 1解决 xlrdImportError: No module named 'xlrd' 该错误是因为Excel需要单独的模块支持,所以需要安装xlrd模块 Python3可以在命令提示符中输入 pip3 install xlrd Python2直接输入 pip install xlrd 如下图: 使
阅读全文
posted @ 2018-03-26 17:16 湖北哥哥
阅读(166)
评论(1)
推荐(0)
2018年3月16日
3.16日连接ORACLE数据库操作
摘要: 问题一:需要考比dll文件到PYTHON的pakge_site中http://blog.csdn.net/longlongvalue/article/details/70792910博客有下载文件 今日问题二:cx_Oracle.DatabaseError: ORA-12541: TNS:no li
阅读全文
posted @ 2018-03-16 09:24 湖北哥哥
阅读(160)
评论(2)
推荐(0)
2018年3月15日
3月15日 【如何读取配置文件】
摘要: 3月15日 【如何读取配置文件】 读取配置总是报错,后检查环境变量 ,将库文件考入即可无法导入 configparser模块,import configparser报错解. 在Python2下,需要大写:import ConfigParser在PYthon3下,需要小写:import configp
阅读全文
posted @ 2018-03-15 13:33 湖北哥哥
阅读(148)
评论(2)
推荐(0)
3月14日 【如何控制时钟】
摘要: import time import sys#create by henryzkf 2018315 succ soundFile = 'sound.wav' not_executed = 1 def soundStart(): if sys.platform[:5] == 'linux': impo
阅读全文
posted @ 2018-03-15 13:31 湖北哥哥
阅读(139)
评论(1)
推荐(0)
公告