tkinter是python自带的图形库,使用之前需要导入该模块,可以使用语句import tkinter as tk 定义一个Text:text=tk.Text() 进行放置,可以用pack,grid,place任意一种方法; 获取Text文本内容:text.get('0.0','end') 该方 ...
分类:
其他好文 时间:
2020-07-06 12:43:40
阅读次数:
217
1、启动浏览器 from selenium import webdriver # 启动谷歌浏览器,依赖:先安装好chromedriver.exe驱动 # 方式1.当chromedriver放在python安装目录时 driver = webdriver.Chrome() # 方式2.通过execut ...
分类:
Web程序 时间:
2020-07-06 01:06:30
阅读次数:
82
如何知道自己所要用的元素的id/name/class等 打开自己的产品页面,F12检查元素,点击element 的tab,可以看到前端所用的方式是哪一种,你就用哪一种去定位元素;如下图:我的,用的就是class; WebElement element = driver.findElement(By. ...
分类:
Web程序 时间:
2020-07-05 21:28:21
阅读次数:
89
需求:对商城做注册操作 1 from selenium import webdriver 2 import time 3 4 5 # 对商城做注册和登录操作 6 # 启动浏览器Chrome 7 driver = webdriver.Chrome() 8 9 # 打开商城主页 10 11 driver ...
分类:
其他好文 时间:
2020-07-05 19:22:13
阅读次数:
142
In this example, the primary and secondary synchronization signals are created and mapped to a resource grid. Set up the cell-wide settings. Create a ...
分类:
其他好文 时间:
2020-07-05 17:46:46
阅读次数:
79
CSS 中文开发手册 设置最小值 最大值函数 | minmax (Grid Layout) - CSS 中文开发手册 minmax()定义大于或等于 min 且小于或等于 max 的大小范围。 本文标题:设置最小值 最大值函数 | minmax (Grid Layout) – CSS 中文开发手册 ... ...
分类:
Web程序 时间:
2020-07-04 01:43:01
阅读次数:
109
CSS 中文开发手册 语言 编辑 高级 使用CSS网格进行基于行的放置 | CSS Grid Layout: Line-based Placement with CSS Grid (Grid Layout) - CSS 中文开发手册 在本文介绍了网格布局的基本概念。,我们开始研究如何使用行号在网格中... ...
分类:
编程语言 时间:
2020-07-04 01:15:49
阅读次数:
59
定位界面元素 1、根据元素特征:id,name,class,tag,超链接 写法1: ele=driver.find_element_by_id('kw') 写法2: from selenium.webdriver.common.by import By ele=driver.find_elemen ...
分类:
其他好文 时间:
2020-07-03 23:25:03
阅读次数:
86
11g RAC集群位置: Grid : $ORACLE_HOME/log/`hostname -s` 19c RAC 集群日志位置: Grid: $ ADR_BASE /diag/crs/rac1/crs/trace 所有的集群日志文件被称为TRACE文件,并用带.trc扩展名(除集群警报日志)结束 ...
分类:
数据库 时间:
2020-07-03 21:25:39
阅读次数:
128
题目链接:https://codeforces.com/contest/1371 题目说明: A.Magical Sticks(简单思维) B.Magical Calendar(思维) C.Cookie for you(简单思维) D.Grid-00100(规律构造) E1.Asterism(Eas ...
分类:
其他好文 时间:
2020-07-03 17:59:14
阅读次数:
98