//用数组实现三位数乘三位数 456 * 789

  • Post author:
  • Post category:其他

package cn.tedu; import java.util.Arrays; public class Test06 { public static void main(String[] args) { //用数组实现三位数乘三位数 456 * 789 int[] num1 = {6,5,4}; int[] num2 = {9,8,7}; int[] result = new int[num…

继续阅读 //用数组实现三位数乘三位数 456 * 789

sql月度汇总_SQL语句统计每天、每月、每年的 数据

  • Post author:
  • Post category:其他

1、每年 select year(ordertime) 年, sum(Total) 销售合计 from 订单表 group by year(ordertime) 2、每月 select year(ordertime) 年, month(ordertime) 月, sum(Total) 销售合计 from 订单表 group by year(ordertime), month(ordertime 3…

继续阅读 sql月度汇总_SQL语句统计每天、每月、每年的 数据

函数对象(仿函数)

  • Post author:
  • Post category:其他

函数对象,仿函数 (1)是一个类,类中重载()运算符; eg: MyPrint p; p(111) ; (2)内部可以记录状态,例如调用次数; (3)作为类型,可以与普通函数和模板等作为参数使用; 代码分析 #include<iostream> using namespace std; class MyPrint { public: MyPrint() { this->count…

继续阅读 函数对象(仿函数)

GB2312转UTF-8 编码格式转换方法

  • Post author:
  • Post category:其他

files=`find . -name '*.c' | xargs enca -L zh | grep GB2312 | cut -d: -f1` for f in $files; do iconv -f GBK -t UTF-8 $f > $f.utf && mv -f $f.utf $f && echo "$f done" done echo "chang…

继续阅读 GB2312转UTF-8 编码格式转换方法

跨域的几种解决方案

  • Post author:
  • Post category:其他

什么是跨域? 跨域是指一个域下的文档或脚本试图去请求另一个域下的资源,这里跨域是广义的。 广义的跨域: 1.) 资源跳转: A链接、重定向、表单提交 2.) 资源嵌入: <link>、<script>、<img>、<frame>等dom标签,还有样式中background:url()、@font-face()等文件外链 3.) 脚本请求: js发起的…

继续阅读 跨域的几种解决方案

sql约束

  • Post author:
  • Post category:其他

约束 约束的作用 面临的问题 -某列必须有值且唯一 -某列的取值受到另一列取值的限制 数据库提供的解决方法 -限制无效的数据进入到表中 -数据库层面的"安检" 约束的类型 约束名意思primary key主键约束unique key唯一键约束not null非空约束references foreign key外键约束check检查约束 create table test( c1 number co…

继续阅读 sql约束

sed #流编辑器

  • Post author:
  • Post category:其他

sed #流编辑器,一次处理一行的内容 -n #使用安静(silent)模式,在一般sed的用法中,所有来自STDIN的数据一般都会被列出到终端上,但 如果加上-n参数后,则只有经过sed特殊处理的那一行(或者动作)才会被列出来 -e #直接在命令列模式上进行sed的动作编辑 -f #直接将sed动作写在一个文件内,-f filename则可以运行内的sed动作 -r #sed的动作支持的是延伸型…

继续阅读 sed #流编辑器

低功耗蓝牙(BLE)你入门了吗

  • Post author:
  • Post category:其他

前言         蓝牙低功耗(Bluetooth Low Energy,或称Bluetooth LE、BLE,旧商标Bluetooth Smart),用于医疗保健、运动健身、安防、工业控制、家庭娱乐等领域。在如今的物联网时代下大放异彩,扮演者重要一环,是无线通信的主流技术之一(常见的无线通信技术有NFC、GPRS、Zigbee、WiFi等),2021 年 7 月蓝牙技术联盟(Bluetooth…

继续阅读 低功耗蓝牙(BLE)你入门了吗

ERROR o.a.s.w.e.EnvironmentLoader – Shiro environment initialization failed

  • Post author:
  • Post category:其他

昨天关机还好好哒,今天开机就悲剧惹。。。 最终是发现 \webapp\WEB-INF\classes\shiro_jdbc.properties 这个配置文件里 [main] [urls] 两个后面多了“=”等于号 把等于号删掉就行了 莫名.... 听同事说可能是IDE软件的bug... 版权声明:本文为tuntun1120原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接…

继续阅读 ERROR o.a.s.w.e.EnvironmentLoader – Shiro environment initialization failed

引用echarts的水球图echarts-liquidfill.min.js文件报错require is not defined或define is not defined处理

  • Post author:
  • Post category:其他

在用echarts水球图echarts-liquidfill.min.js时,遇到了require is not defined或是define is not defined报错,具体保存信息如下图: 在网上到处查找,寻找解决办法,基本上能找到的办法我都试了,还是报这个错,还是只能自己想办法。我自己找到的解决办法如下。 既然它报的错是require is not defined或者define i…

继续阅读 引用echarts的水球图echarts-liquidfill.min.js文件报错require is not defined或define is not defined处理