1.pytharm中新建python文件报错
Error parsing Velocity template: Encountered " " at [line 5, column 27]
参考博客如下 需要修改pytharm模板 https://blog.csdn.net/Lyndon0_0/article/details/132497586
打开PyCharm,
选择File
–> Settings
–> Editor
–> Code Style
–> File and Code Templates
–> Python Scrip
11.17
2. selenium自动化测试时chrome浏览器自动关闭
https://zhuanlan.zhihu.com/p/111132413评论区方法 加了一个option
3.执行search = driver.find_element_by_id(“pass”)时出现
AttributeError: ‘WebDriver’ object has no attribute ‘find_element_by_id’
应该是更新了或者类用的不对 不能用find_element_by_id 换成如https://www.5axxw.com/questions/content/ds60xx解答所示
from selenium.webdriver.common.by import By
driver.find_element(By.ID, “pass”)可以运行
11.21凌晨
facebook显示This page isn’t working didn’t send any data. ERR_EMPTY_RESPONSE
重启电脑然后好了!
chatgpt真好乌乌
11.26 HTML 语法规范 标签 https://zhuanlan.zhihu.com/p/661514672
linux用/ win用\ python中防止将\看作转义符号打成\
在windows系统大部分情况下斜杠/和反斜杠\可以互用,特殊时候只能用反斜杠
出现在普通字符串中的路径,如果代表的是windows文件路径,则使用 斜杆/ 和 反斜杠\ 是一样的;如果代表的是网络文件路径,则必须使用 斜杆/
当前文件夹的相对路径“…/”表示上一层文件夹,而“./”表示当前文件夹。