会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
qiao1234
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2017年8月18日
python3中,pycharm中怎么连接数据库
摘要: 因为python3现在还不能直接连接数据库,所有如果想连接,就只能通过以下方法: 在APP中的,__init__.py中,添加以下代码就可以:
阅读全文
posted @ 2017-08-18 09:41 qiao1234
阅读(420)
评论(0)
推荐(0)
2017年8月10日
python 的特殊方法 __str__和__repr__
摘要: __str__和__repr__ 如果要把一个类的实例变成 str,就需要实现特殊方法__str__(): class Person(object): def __init__(self, name, gender): self.name = name self.gender = gender de
阅读全文
posted @ 2017-08-10 15:27 qiao1234
阅读(281)
评论(0)
推荐(0)
2017年7月13日
python3+selenium使用浏览器IE的时候,无法打开IE浏览器,老是报错: Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones
摘要: python3+selenium使用浏览器IE的时候,老是报错: Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones
阅读全文
posted @ 2017-07-13 16:35 qiao1234
阅读(452)
评论(0)
推荐(0)
2017年6月29日
同时安装Python2与Python3,安装第三方包,老是报错
摘要: 同时安装Python2与Python3,安装第三方包,老是报错提示Fatal error in launcher: Unable to create process using '"',那可能是环境变量有冲突了。 解决办法:
阅读全文
posted @ 2017-06-29 11:58 qiao1234
阅读(458)
评论(0)
推荐(0)
2017年6月19日
python2 + selenium + eclipse 中,配置好runserver 127.0.0.1:9000,运行的时候,报错
摘要: python2 + selenium + eclipse 中,配置好runserver 127.0.0.1:9000,运行的时候,报错,如图: 原来: import django.core.handlers.wsgi application = django.core.handlers.wsgi.W
阅读全文
posted @ 2017-06-19 15:15 qiao1234
阅读(335)
评论(0)
推荐(0)
python2 + selenium + eclipse 中,通过django生产数据库表的时候报错
摘要: python2 + selenium + eclipse 中,通过django生产数据库表的时候报错 解决: 1.查看自己电脑中,“开始-->控制面板-->管理工具-->服务-->mysql56-->启动服务”,是否停止了mysql服务。
阅读全文
posted @ 2017-06-19 15:13 qiao1234
阅读(167)
评论(0)
推荐(0)
Python2.X如何将Unicode中文字符串转换成 string字符串
摘要: 普通字符串可以用多种方式编码成Unicode字符串,具体要看你究竟选择了哪种编码: unicodestring = u"Hello world" # 将Unicode转化为普通Python字符串:"encode" utf8string = unicodestring.encode("utf-8")
阅读全文
posted @ 2017-06-19 15:10 qiao1234
阅读(36015)
评论(0)
推荐(1)
selenium2获取input输入框中的值的三种方法。
摘要:
阅读全文
posted @ 2017-06-19 15:10 qiao1234
阅读(381)
评论(0)
推荐(0)
Selenium2+python自动化45-18种定位方法(find_elements)
摘要: 一、十八种定位方法 前八种是大家都熟悉的,经常会用到的 1.id定位:find_element_by_id(self, id_) 2.name定位:find_element_by_name(self, name) 3.class定位:find_element_by_class_name(self,
阅读全文
posted @ 2017-06-19 15:09 qiao1234
阅读(282)
评论(0)
推荐(0)
selenium+python中,框架中,怎么返回上一个菜单
摘要: /退回上一级表单 driver.switchTo().defaultContent(); 如果上面行不通,访问以下网站: https://www.cnblogs.com/math98/p/11013579.html 如果定位不到元素,报selenium.common.exceptions.NoSuc
阅读全文
posted @ 2017-06-19 15:06 qiao1234
阅读(1924)
评论(1)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告