会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hct118
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
7
8
9
10
11
12
下一页
2015年12月10日
Jmeter测试JDBC
摘要: DatebaseDriver classDatabase URLMySQLcom.mysql.jdbc.Driverjdbc:mysql://host:port/{dbname}PostgreSQLorg.postgresql.Driverjdbc:postgresql:{dbname}Oracle...
阅读全文
posted @ 2015-12-10 09:58 hct118
阅读(189)
评论(0)
推荐(0)
2015年5月31日
Python 实现发送、抄送邮件功能
摘要: 发送邮件问题在web.py中,如何发送邮件?解法在web.py中使用web.sendmail()发送邮件.web.sendmail('cookbook@webpy.org', 'user@example.com', 'subject', 'message')如果在web.config中指定了邮件服务...
阅读全文
posted @ 2015-05-31 14:46 hct118
阅读(3301)
评论(0)
推荐(0)
2015年5月23日
Python中判断是否为闰年,求输入日期是该年第几天
摘要: #coding = utf-8def getLastDay(): y = int(input("Please input year :")) m = int(input("please input month :")) d = int(input("Please input day...
阅读全文
posted @ 2015-05-23 18:04 hct118
阅读(1084)
评论(0)
推荐(0)
2015年5月17日
JAVA中读取xls数据方法介绍
摘要: 用例编号(UI-0001)用例名称({验证页面跳转|验证元素文本}-简要明确表述)验证类型是否执行初始URL初始元素xpath目标元素xpath目标元素属性期望结果UI-0001验证页面跳转-登录当前标签页执行http://www.yixun.com///a[@id='j_log...
阅读全文
posted @ 2015-05-17 13:36 hct118
阅读(591)
评论(0)
推荐(0)
2015年5月16日
Java中读取xml方法
摘要: package zaxiang;import java.io.*;import javax.xml.parsers.DocumentBuilder;import javax.xml.parsers.DocumentBuilderFactory;import org.w3c.dom.Document;...
阅读全文
posted @ 2015-05-16 23:43 hct118
阅读(362)
评论(0)
推荐(0)
Python读取xml报错解析--ExpatError: not well-formed (invalid token)
摘要: xml文件内容如代码所示存入的名字为login.xml: 126 http://www.126.com 请先输入您的邮箱帐号 Python源代码代码本身是没有错误的:#coding =utf-8import xml.dom.min...
阅读全文
posted @ 2015-05-16 11:48 hct118
阅读(14703)
评论(0)
推荐(0)
2015年5月14日
Python中如何读取xml的数据
摘要: - 4 - Python - test - Zope 处理的xml文件如上图:Python代码:#coding =utf-8import xml.dom.minidomdom=xml.dom.minidom.parse('D:\Python27\lianxida...
阅读全文
posted @ 2015-05-14 20:07 hct118
阅读(1008)
评论(0)
推荐(0)
2015年5月13日
Python 文件处理
摘要: 文件夹:得到当前工作目录,即当前Python脚本工作的目录路径: os.getcwd()返回指定目录下的所有文件和目录名:os.listdir()函数用来删除一个文件:os.remove()删除多个目录:os.removedirs(r“c:\python”)检验给出的路径是否是一个文件:os.pat...
阅读全文
posted @ 2015-05-13 21:33 hct118
阅读(142)
评论(0)
推荐(0)
Python中如何读取xls中的数据
摘要: 要想读取EXCEL中的数据,首先得下载xlrd包,地址:https://pypi.python.org/pypi/xlrd 安装方法:下载解压后,利用windows dos命令进入解压目录eg,cd E:\selenium--Pyton学习\Python软件\xlwt-1.0.0\xlwt-1.0....
阅读全文
posted @ 2015-05-13 21:25 hct118
阅读(1812)
评论(0)
推荐(1)
Python中读取csv文件内容方法
摘要: gg224@126.com85男dd123@126.com52女fgf125@126.com23女csv文件内容如上图,首先导入csv包,调用csv中的方法reader()创建一个对象,由于使用print data 打印出来的内容是集合,所以要想获取集合中某个具体值如“邮箱”,需要利用列表遍历...
阅读全文
posted @ 2015-05-13 18:22 hct118
阅读(1438)
评论(0)
推荐(0)
上一页
1
···
7
8
9
10
11
12
下一页
公告