10 2022 档案
摘要:1、首先查找出元素在数组中的位置即索引(数组中本来就有 indexOf() 方法,方便学习给出代码): Array.prototype.indexOf = function(val) { for (var i = 0; i < this.length; i++) { if (this[i] == v
阅读全文
摘要:[].map.call(document.getElementsByTagName('img'), function (img){ return img.src;}) [].map.call(document.getElementsByTagName('A'), function (img){ re
阅读全文
摘要:linux查看上一条命令的执行结果 Echo $? 0 成功 其他失败 汇总:$0 # 脚本启动名(包括路径) $n # 第n个参数,n=1,2,…9 $* # 所有参数列表(不包括脚本本身) $@ # 所有参数列表(独立字符串) $# # 参数个数(不包括脚本本身) $$ # 当前程式的PID $
阅读全文
摘要:什么是 RESTful 什么是REST REST(英文:Representational State Transfer,又称具象状态传输)是Roy Thomas Fielding博士于2000年在他的博士论文 中提出来的一种万维网软件架构风格,目的是便于不同软件/程序在网络(例如互联网)中互相传递信
阅读全文
摘要:httpbin.org 这个网站能测试 HTTP 请求和响应的各种信息,比如 cookie、ip、headers 和登录验证等,且支持 GET、POST 等多种方法,对 web 开发和测试很有帮助。 它用 Python + Flask 编写,是一个开源项目。 官方网站:http://httpbin.
阅读全文
摘要:https://www.runoob.com/xml/xml-technologies.html XHTML (可扩展 HTML)更严格更纯净的基于 XML 的 HTML 版本。 XML DOM (XML 文档对象模型)访问和操作 XML 的标准文档模型。 XSL (可扩展样式表语言) XSL 包含
阅读全文
摘要:var xt = "", h3OK = 1 function checkErrorXML(x) { xt = "" h3OK = 1 checkXML(x) } function checkXML(n) { var l, i, nam nam = n.nodeName if (nam == "h3"
阅读全文
摘要:一、官方资料 中文版: https://docs.python.org/zh-cn/3/index.html 英文版: https://docs.python.org/3.12/ 分发 Python 模块: https://docs.python.org/zh-cn/3/distributing/i
阅读全文
摘要:1、Httpbin介绍 Httpbin是一个使用Python + Flask编写的HTTP Request & Response Service,该服务主要用于测试 HTTP库,你可以向他发送请求,然后他会按照指定的规则将你的请求返回(查看你所发送请求中的信息)。Httpbin支持HTTP/HTTP
阅读全文
摘要:https://blog.csdn.net/lilongsy/article/details/122140098 import requests res = requests.get("https://www.baidu.com/") res.encoding = res.apparent_enco
阅读全文