05 2020 档案
摘要:1. application/x-www-form-urlencoded 默认。在发送前对所有字符进行编码(将空格转换为 "+" 符号,特殊字符转换为 ASCII HEX 值)。 multipart/form-data 不对字符编码。当使用有文件上传控件的表单时,该值是必需的。 text/plain
阅读全文
摘要:1. 2. 3. 4. 5. 6. 7. 8. 9. 10.
阅读全文
摘要:// 父组件传值到子组件中。class WebSite extends React.Component { constructor() { super(); this.state = { name: "菜鸟教程", site: "https://www.runoob.com" } } render(
阅读全文
摘要:import requests from bs4 import BeautifulSoup from PIL import Image import os from io import BytesIO import time url = "http://www.yestone.com/gallery
阅读全文
摘要:Python的循环有两种,一种是for...in循环,依次把list或tuple中的每个元素迭代出来names = ['Michael', 'Bob', 'Tracy'] for name in names: print(name) 第二种循环是while循环,只要条件满足,就不断循环,条件不满足时
阅读全文
摘要:通常把文件保存为不带BOM的UTF-8文件 1.BOM——Byte Order Mark,就是字节序标记 2.BOM即byte order mark,具体含义可百度百科或维基百科,UTF-8文件中放置BOM主要是微软的习惯,但是放在别的系统上会出现问题。不含BOM的UTF-8才是标准形式,UTF-8
阅读全文
摘要:1.beautifulsoup4 提取出html其中你需要的具体信息 https://www.jianshu.com/p/f0f4c253bb14 2.requests 发送http请求,需要安装 urllib 发送请求,py自带 3.lxml读取HTML文件进行解析 4.Anaconda 避免环境
阅读全文
摘要:to.matched.some(record => record.meta.requiresAuth); 路由守卫 看下 es6的 some方法。 这里的意思是,to.matched 的数组中,如果在mate中有requiresAuth 那么就返回true,否则会返回false;
阅读全文