public class test { public static void main(String[] args) { //int -- String int n=100; String s=""+n; System.out.println(s); //利用valueof() String s2= ...
分类:
编程语言 时间:
2020-11-26 14:20:35
阅读次数:
5
WindowsRegistryEditorVersion5.00[HKEY_CLASSES_ROOT\test];申明协议内容"URLProtocol"="C:\Windows\System32\test.exe";申明打开文件[HKEY_CLASSES_ROOT\test\shell\open\command]@="\"C:\Windo
分类:
其他好文 时间:
2020-11-26 14:07:10
阅读次数:
3
Java并发编程系列21|Condition-Lock的等待通知收录于话题#进阶架构师|并发编程专题12个点击上方“java进阶架构师”,选择右上角“置顶公众号”20大进阶架构专题每日送达我们知道synchronized锁通过Object类的wait()和notify()方法实现线程间的等待通知机制,而比synchronized更灵活Lock锁同样也有实现等待通知机制的方式,那就是条件Condit
分类:
编程语言 时间:
2020-11-24 12:53:18
阅读次数:
6
1、安装coverage pip install coverage 安装完成后,会在Python环境下的\Scripts下看到coverage.exe; 2、Coverage 命令行 coverage run 运行一个.py的文件方式:python test.py 现在使用coverage执行.py ...
分类:
编程语言 时间:
2020-11-24 12:46:44
阅读次数:
7
using NLog; using System; using System.IO.Ports; using System.Text; using System.Threading; namespace TestCom485 { class Program { static void Main(st ...
分类:
其他好文 时间:
2020-11-24 12:42:10
阅读次数:
9
一、前言 用过unittest的童鞋都知道,有两个前置方法,两个后置方法;分别是 setup() setupClass() teardown() teardownClass() Pytest也贴心的提供了类似setup、teardown的方法,并且还超过四个,一共有十种 **模块级别:**setup ...
分类:
其他好文 时间:
2020-11-24 12:40:48
阅读次数:
8
#include <string.h> #include <stdlib.h> #include <stdio.h> #include "gmp.h" #define MILLER_RABIN_TEST_NUM 5 #define PRIME_BIT 512 #define CLOCKS_PER_S ...
分类:
其他好文 时间:
2020-11-24 12:38:56
阅读次数:
6
使用循环逐个转换 public class Test1 { public static void main(String[] args) { int[] a = { 11, 12, 13}; // 打印输出 for (String i : intArrToStringArr(a)) { System ...
分类:
编程语言 时间:
2020-11-24 12:05:33
阅读次数:
9
2.4 1的数目 基础问题 写一个函数$f(N)$, 返回1到N之间出现的1的个数,比如$f(12) = 5$ 解法 解法1 暴力求解 直接遍历即可 解法2 通过分析小于n的数在每一位上可能出现1的次数之和 // 2.4 1的数目 class Test{ public static void mai ...
分类:
其他好文 时间:
2020-11-23 12:47:11
阅读次数:
19
两台mysql版本号为5.7以上 主库配置文件设置(注意设置在[mysqld]项中) 主库的ip地址为:192.168.1.1 server-id=1 #唯一id,主库设置1 log-bin=mysql-bin #日志记录 sync-binlog=1 binlog-do-db=test #同步指定的 ...
分类:
数据库 时间:
2020-11-23 12:43:46
阅读次数:
28