最近开发门店系统(wpf)用USB模式调用热敏打印机打印,查了许多办法,现在整理一下 引用 PrintDocument 类 首先组织数据。。。。。。字符串拼接 stringbuilder sb=new stringbuilder(); 使劲往sb里面append();就行。 完了进行一下tostri ...
ps -ef | grep tomcat | awk '{print $2}' | grep '^3' | xargs kill -9 ps -ef | grep tomcat (查看tomcat 所有进程) awk '{print $2}' (打印输出第二行) grep '^3' (匹配以3 开头 ...
分类:
系统相关 时间:
2020-06-19 12:20:24
阅读次数:
112
Numpy包含大量的数学函数,如三角函数、算术函数和处理复数的函数等等,这些函数可以用来执行各种数学操作。 三角函数 Numpy中包含三角函数,用于不同角度的正弦、余弦和正切等就散。 示例 import numpy as np arr = np.array([0, 30, 60, 90, 120, ...
分类:
编程语言 时间:
2020-06-19 12:08:23
阅读次数:
49
1.前言 项目中都会使用常量类文件, 这些值如果需要变动需要重新提交代码,或者基于@Value注解实现动态刷新, 如果常量太多也是很麻烦; 那么 能不能有更加简便的实现方式呢? 本文讲述的方式是, 一个JAVA类对应NACOS中的一个配置文件,优先使用nacos中的配置,不配置则使用程序中的默认值; ...
分类:
编程语言 时间:
2020-06-18 21:57:54
阅读次数:
132
centos7 安装xinetd,telnet 安装方式:yum [root@master ~]# yum list |grep telnettelnet-server.x86_64 1:0.17-59.el7 @base telnet.x86_64 1:0.17-59.el7 base [root ...
分类:
Web程序 时间:
2020-06-18 21:11:02
阅读次数:
74
Given the array candies and the integer extraCandies, where candies[i] represents the number of candies that the ith kid has. For each kid check if th ...
分类:
其他好文 时间:
2020-06-18 13:17:39
阅读次数:
65
外湖莲子长参差,霁山青处鸥飞。 水天溶漾画桡迟,人影鉴中移。 桃叶浅声双唱,杏红深色轻衣。 小荷障面避斜晖,分得翠阴归。 Spring in Painted Hall The lotus blooms in outer lake grow high and low; After the rain o ...
分类:
其他好文 时间:
2020-06-18 01:32:53
阅读次数:
75
//1两表联合查询 db.orders.aggregate([ { $lookup: { from: "inventory",//附表 localField: "item.name",//主表字段 foreignField: "sku",//附表字段 as: "inventory_docs"//附表 ...
分类:
数据库 时间:
2020-06-17 11:07:17
阅读次数:
67
一、自建yum仓库,分别为网络源和本地源。网络源:1、首先创建yum仓库:[centos@localhost~]$yuminstallcreaterepo2、将原来的yum网络源禁用。[root@localhostyum.repos.d]#mvCentOS-Base.repoCentOS-Base.repo.bak3、编辑CentOS-Base.repo[base]name=BaseRepoonm
分类:
其他好文 时间:
2020-06-17 10:54:51
阅读次数:
47
1.逻辑回归是怎么防止过拟合的?为什么正则化可以防止过拟合? 答: (1)可以通过增加样本量,或者提取不重要的特征进行降维来防止过拟合,也可以通过正则化来防止过拟合。 (2)正则化的原理,就是通过约束系数(w)的大小,进而抑制整体的过拟合情况。 2.用logiftic回归来进行实践操作,数据不限。 ...
分类:
其他好文 时间:
2020-06-16 13:18:13
阅读次数:
56