摘要:
Console控制台中输入: 在Console页面输入setTimeout(function(){debugger;},5000),然后快速点击要定位的下拉框, 鼠标不要动等待三秒,下拉框就被固定住了,这时就可对下拉框的枚举值进行定位了 阅读全文
摘要:
1.当我们执行脚本时,报当谷歌浏览器驱动不匹配时,如何解决 2.http://npm.taobao.org/mirrors/chromedriver 查看谷歌浏览器版本,在该网页中找到与浏览器匹配的驱动,即可 阅读全文
摘要:
1. HttpResponseRedirect 重定向 2. redirect重定向 3.重定向 name设置 ,views中使用 redirect 阅读全文
摘要:
阅读全文
摘要:
1.使用 loader.get_template('index.html') 读取数据 2. templ.render 传递变量 阅读全文
摘要:
1.配置file_path 2.with open()打开文件,read读取数据 3.如何将变量传递到 html中,使用替换 阅读全文
摘要:
1.urls配置路由地址 path()中得地址绝对地址 url()中可以使用正则表达式,^以什么开头,$以什么结尾 阅读全文
摘要:
1. 创建项目 django-admin startproject 项目名 2. 创建accounts模块 python manage.py startapp app名 models.py #模块名 views #视图 templates # 阅读全文
摘要:
1.新建项目结构 django-admin startproject 项目名 2.启动 python manage.py runserver 8000 3.项目结构 My_project 项目目录 __init__.py #包得入口文件 setting.py #项目配置文件 urls.py url 阅读全文
摘要:
1.安装包,pip install deepdiff 2.导入包: from deepdiff import DeepDiff 3. dict1 = {"aaa":"AAA","bbb":"BBB"} dict2 = {"c":"AAA","bbb":"BBB"} print(DeepDiff(di 阅读全文