2024年3月6日
摘要: 要将字符串"0%2C1%2C2"中的编码进行反向操作并得到原始值,可以使用Python内置函数urllib.parse模块中的unquote()函数。 下面是示例代码: import urllib.parse encoded_str = "0%2C1%2C2" decoded_str = urlli 阅读全文
posted @ 2024-03-06 15:02 凌风子 阅读(5) 评论(0) 推荐(0) 编辑
  2023年5月19日
摘要: 1、.env文件数据添加到环境变量 load_dotenv(ROOT_DIR + '/.env', verbose=True) 或load_dotenv(find_dotenv('.env') 2、新增环境变量,其中key和value均为string类型 os.environ['环境变量名称']=' 阅读全文
posted @ 2023-05-19 12:04 凌风子 阅读(1751) 评论(0) 推荐(0) 编辑
  2023年3月30日
摘要: 问题: cch:requsetDatas leo$ git push origin master remote: Permission to bbb/requsetDatas.git denied to aaa. fatal: unable to access 'https://github.com 阅读全文
posted @ 2023-03-30 10:33 凌风子 阅读(930) 评论(0) 推荐(0) 编辑
  2023年2月16日
摘要: mac 上部署Jenkins,可以被ping通,ip:8080不能被访问: 将 /usr/local/opt/jenkins/homebrew.mxcl.jenkins.plist 中httpListenAddress=127.0.0.1修改为0.0.0.0; 如果还不可以,~/Library/La 阅读全文
posted @ 2023-02-16 09:56 凌风子 阅读(419) 评论(0) 推荐(0) 编辑
  2022年11月30日
摘要: 1、插件安装HTML Publisher plugin、Groovy 2、构建操作 System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "") 3、构建后操作 4、查看HTML报告 阅读全文
posted @ 2022-11-30 15:30 凌风子 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 1、 js = 'document.getElementById("train_date").removeAttribute("readonly"); driver.execute_script(js) 2、 pag=driver.find_element_by_xpath('//*[@id="pa 阅读全文
posted @ 2022-11-30 15:15 凌风子 阅读(138) 评论(0) 推荐(0) 编辑
  2022年9月14日
摘要: pytest执行遇到提示: PytestUnknownMarkWarning: Unknown pytest.mark.pre - is this a typo? You can register custom marks to avoid this warning - for details, s 阅读全文
posted @ 2022-09-14 14:06 凌风子 阅读(306) 评论(0) 推荐(0) 编辑
  2022年8月19日
摘要: 使用pip 安装requirements.txt中所需要的包 pip install -r requirements.txt 使用 pip freeze 会输出所有在本地已安装的包(但不包括 pip、wheel、setuptools 等自带包),若需要输出内容与 pip list 一致,需使用 pi 阅读全文
posted @ 2022-08-19 13:22 凌风子 阅读(115) 评论(0) 推荐(0) 编辑
  2022年6月30日
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>${ENV, var="JOB_NAME"}-第${BUILD_NUMBER}次构建日志</title> </head> <body leftmargin="8" marginwi 阅读全文
posted @ 2022-06-30 17:21 凌风子 阅读(148) 评论(0) 推荐(0) 编辑
  2022年6月23日
摘要: 1、pip install weditor 注:若安装失败并提示安装包的问题、不是pip原因,需要更换制定weditor版本安装; 2、终端输入命令启动weditor: python -m weditor 3、命令执行成功后会自动调用浏览器打开地址http://localhost:17310/ 选择 阅读全文
posted @ 2022-06-23 09:27 凌风子 阅读(181) 评论(0) 推荐(0) 编辑