• 2024-05-29css06 CSS Pseudo-elements
    https://www.w3schools.com/css/css_pseudo_elements.aspWhatarePseudo-Elements?ACSSpseudo-elementisusedtostylespecifiedpartsofanelement.Forexample,itcanbeusedto:Stylethefirstletter,orline,ofanelementInsertcontentbefore,or
  • 2024-05-28css04 CSS Combinators
    https://www.w3schools.com/css/css_combinators.aspCSSCombinatorsAcombinatorissomethingthatexplainstherelationshipbetweentheselectors.ACSSselectorcancontainmorethanonesimpleselector.Betweenthesimpleselectors,wecanincludeaco
  • 2024-05-28css05 CSS Pseudo-classes
    https://www.w3schools.com/css/css_pseudo_classes.asp WhatarePseudo-classes?Apseudo-classisusedtodefineaspecialstateofanelement.Forexample,itcanbeusedto:StyleanelementwhenausermousesoveritStylevisitedandunvisitedlinks
  • 2024-05-131250 - Table 'd' from one of the SELECTs cannot be used in field list
    1问题描述sql数据库查询接口union后orderby某字段,提示错误“1250-Table'd'fromoneoftheSELECTscannotbeusedinfieldlist“。移除orderby条件,就不会报错,但是不满足按照某个字段排序。 2方案解决修改排序条件为:orderbystatId即可。(union后的结果是字段
  • 2024-03-14Mysql 100个表嵌套查询 存储过程
    背景1. 业务销售订单会随机落在1~100表中,查询一个订单时需要1到100表依次去查询,增加手工重复操作和浪费时间。2.查询未解冻数据时,需要过滤部分解冻的数据,此时需要用到嵌套查询。 一、根据订单号,循环1~100个表,查询出订单数据CREATEDEFINER=`{数据库连接账号}`@`%`
  • 2023-07-01级联下拉的实现方式(如省市县)-1 Smart Selects方式
    https://django-smart-selects.readthedocs.io/en/latest/usage.html特点:简单,不容易定制,适合简单的关联下拉,只能是table-table有单选、多选、guoup分组等3种组合fromdjango.dbimportmodelsfromsmart_selects.db_fieldsimport(ChainedForeignKey,ChainedManyToMa
  • 2023-06-25RANSAC方法例子
    RANSAC是一种常用的剔除数据中异常点的方法。本文以拟合圆为例展示RANSAC的工作方式。首先我们有一组点,假设内点的概率是p。我们要使RANSAC的成功率至少达到${\eta=99.9\%}$,那么至少需要重复选择多少次样本?首先确定一个圆需要3个点,即每次选择随机选3个点,因此一次选择包含外点的
  • 2023-03-15框选人物的例子+改变鼠标图标(类似红警)
    usingSystem.Collections;usingSystem.Collections.Generic;usingUnityEngine;publicclassSetBox:MonoBehaviour{//这个是换鼠标图标publicTexture2Dtex
  • 2023-03-10框选
     usingSystem.Collections;usingSystem.Collections.Generic;usingUnityEngine;usingUnityEngine.AI;usingUnityEngine.UI;///<summary>//////</summary