题目: https://leetcode cn.com/problems/html entity parser/ 「HTML实体解析器」 是一种特殊的解析器,它将 HTML 代码作为输入,并用字符本身替换掉所有这些特殊的字符实体。 HTML 里这些特殊字符和它们对应的字符实体包括: 双引号:字符实体 ...
分类:
编程语言 时间:
2020-04-12 14:28:21
阅读次数:
63
子查询:就是一个查询的结果作为另一个查询的数据源或者条件。 如何查询出工资最大的人的姓名? mysql> select max(sal) from emp; --查询出工资最大值 + + | max(sal) | + + | 5000.00 | + + 1 row in set (0.00 sec) ...
分类:
数据库 时间:
2020-04-12 10:43:08
阅读次数:
77
一、XXE 是什么 XXE(XML External Entity Injection),即xml外部实体注入,由于程序在解析输入的数据过程中,解析了攻击者伪造的外部实体造成的攻击。 二、什么是xml: XML文件格式是纯文本格式,在许多方面类似于HTML,XML由XML元素组成,每个XML元素包括 ...
分类:
其他好文 时间:
2020-04-11 20:14:52
阅读次数:
83
ylbtech-Code-Serialization:Xml序列化与Xml反序列化 1.返回顶部 1、 using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.T ...
分类:
其他好文 时间:
2020-04-11 18:32:55
阅读次数:
60
是一个父类Entity,父类中包含的成员有坐标XY以及移动函数move #include<iostream> class Entity { public: float X,Y; void Mive(float xa,float ya) { X+=xa; Y+=ya; } }; class Playe ...
分类:
其他好文 时间:
2020-04-11 15:45:59
阅读次数:
64
一、为什么要使用LINQ 假设有一个整数类型的数组,找到里面的偶数并进行降序排序。 在C#2.0以前,如果要实现这样的功能,我们必须使用'foreach'或'for'循环来遍历数组,先找到偶数然后在降序排序,相关代码如下: using System; using System.Collections ...
分类:
其他好文 时间:
2020-04-11 09:32:55
阅读次数:
58
界面: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading ...
分类:
其他好文 时间:
2020-04-10 13:34:45
阅读次数:
273
requests(三):json请求中中文乱码处理 最近收到一个问题:json格式请求数据中有中文,导致服务端签名失败。 问题详情: 一位同学在发送json格式的post请求时,请求数据中有中文内容: {"inputCodes":["6932608700850"],"terminal":{"stat ...
分类:
Web程序 时间:
2020-04-06 15:24:48
阅读次数:
95
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Input; using System.Threading.Tasks; using ...
分类:
其他好文 时间:
2020-04-06 14:00:06
阅读次数:
71
首先创建一个.net core控制台程序,添加实体类 实体类:Employee 定义DbContext 配置数据库链接:appsettings.json 添加数据库迁移 Add Migration 在Program.cs中测试 ...