摘要:
官方文档: https://beautifulsoup.readthedocs.io/zh_CN/v4.4.0/ 入门 from bs4 import BeautifulSoup """ 1. 基于请求返回得html文件也可以给BeautifulSoup 解析 resp = requests.get 阅读全文
摘要:
1. API 1.1 发送POST请求: import urllib.request import urllib.parse url = "http://www.httpbin.org/post" # 请求数据 data = bytes(urllib.parse.urlencode({"name": 阅读全文
摘要:
总体配置步骤: 1.邮箱开通授权码,不在详细描述 2.配置jenkins 邮件系统 3.在项目配置的构建后操作选择发送邮件 1.jenkins 默认邮件插件使用 1.1 系统设置中配置jenkins 邮件系统 config system 中进行配置 a) b) c) 至此如果收到测试邮件证明ok 1 阅读全文
摘要:
##背景: 项目是基于虚拟环境构建的,第三方包实际都是安装在: E:\PyProject\py_basic\Lib\site-packages,跟python的安装目录不是同一个目录 ##问题: 在Pycharm 和 CMD 都是可以正常运行,但Jenkins构建报错: C:\Users\86158 阅读全文
摘要:
https://blog.csdn.net/kofjjj/article/details/99090799 阅读全文
摘要:
Git 第一次使用,需要设置个人信息: git config --global user.email "email@example.com" git config --global user.name "Your Name" SSH 生成公钥/私钥 ssh-keygen -t rsa -C "xxx 阅读全文
摘要:
3.8 """ 新特性1:海象运算符 """ a = [1, 2, 3, 4, 5, ] if (n := len(a) )> 5: print(f"List len is too long ({n} elements, expected <= 10)") else: print(f"List le 阅读全文
摘要:
JSON schema 基础 重点关键字: type 取值: 在线校验地址: https://www.jsonschemavalidator.net/ 校验值的类型 json: { "success": true, "code": 10000, "message": "操作成功", "data": 阅读全文
摘要:
作用类似于Java的三元运算符 IF 后为真: ```python a = True c = 4 if a else 3 print(c) # out: 4 ``` IF 后为假: ```python a = False c = 4 if a else 3 print(c) # out: 3 ``` 阅读全文
摘要:
基本使用 """ 线程的基本使用: sub_thread = threading.Thread(target=xxx) xxx: 线程任务 """ import threading def singe(): """任务一""" for v in range(5): print('正在唱歌。。。。') 阅读全文