参考下面的代码即可。 package main import ( "time" "fmt" ) func main() { //获取当前时间 t := time.Now() //2018-07-11 15:07:51.8858085 +0800 CST m=+0.004000001 fmt.Prin ...
分类:
其他好文 时间:
2021-04-15 12:17:48
阅读次数:
0
使用pycharm出现了错误: Compile Cython Extensions Error 点击install无效,各种方法都无效,网上说需要Microsoft Visual C++ Build Tools,使用Microsoft Visual C++ Build Tools修复仍然无效; 找到 ...
分类:
其他好文 时间:
2021-04-15 12:01:48
阅读次数:
0
How to use Regular Expressions (Regex) in Microsoft Excel both in-cell and loops Regular expressions are used for Pattern Matching. To use in Excel fo ...
分类:
其他好文 时间:
2021-04-14 12:44:22
阅读次数:
0
1.数据库连接 1 package util; 2 3 import com.alibaba.druid.pool.DruidDataSourceFactory; 4 5 import javax.sql.DataSource; 6 import java.io.IOException; 7 imp ...
分类:
Web程序 时间:
2021-04-14 12:19:31
阅读次数:
0
package com.kuang.struct; public class TestDemo { public static void main(String[] args) { //打印三角形 5行 for (int i = 1; i <= 5; i++) { for (int j = 5; j ...
分类:
其他好文 时间:
2021-04-14 12:09:53
阅读次数:
0
先来个单例模式的线程安全代码 package basic.single; public class SingleTon { private SingleTon(){ System.out.println(Thread.currentThread().getName()); } private sta ...
分类:
其他好文 时间:
2021-04-14 11:58:53
阅读次数:
0
Debian软件包通常为预编译的二进制格式的扩展名".deb",类似rpm文件,因此安装快速,无需编译软 件。包文件包括特定功能或软件所必需的文件、元数据和指令 dpkg:package manager for Debian,类似于rpm, dpkg是基于Debian的系统的包管理器。可 以安装,删 ...
分类:
系统相关 时间:
2021-04-13 12:54:26
阅读次数:
0
package com.zhang.www.base.operater; public class Demo06 { public static void main(String[] args) { //++ -- 自增 自减 一元运算符:一个数字就可以运算 int a=3; int b=a++; ...
分类:
其他好文 时间:
2021-04-13 12:33:54
阅读次数:
0
package com.zhang.www.base.operater; public class Demo05 { public static void main(String[] args) { //关系运算符返回的结果: 正确,错误 布尔值表示 //if int a=10; int b=20; ...
分类:
其他好文 时间:
2021-04-13 12:33:43
阅读次数:
0
/** * 创建线程的方式三:实现Callable接口。 JDK 5.0新增 * * * 如何理解实现Callable接口的方式创建多线程比实现Runnable接口创建多线程方式强大? * 1. call()可以有返回值的。 * 2. call()可以抛出异常,被外面的操作捕获,获取异常的信息 * ...
分类:
编程语言 时间:
2021-04-13 12:25:08
阅读次数:
0