HelloWorld 随便新建一个文件夹,存放代码 新建一个java文件 。 文件后缀名为.java 。Hello.java 。【注意】系统可能没有显示文件后缀名,我们需要手动 编写代码 public class Hello{ public static void main (String[] ar ...
分类:
其他好文 时间:
2021-06-04 19:12:47
阅读次数:
0
package main import ( "fmt" "gorm.io/driver/mysql" "gorm.io/gorm" "time" ) type User struct { ID int Name string CreatedTime time.Time } func main() { ...
分类:
其他好文 时间:
2021-06-04 19:06:12
阅读次数:
0
IDEA 启动项目报错: Failed to start connector [Connector[HTTP/1.1-9502]] 原因: 端口被占用 查进出: netstat -ano|findstr 9502 杀进程:taskkill /pid 2640 /f ...
分类:
其他好文 时间:
2021-06-04 19:02:07
阅读次数:
0
类型转换 publicclassdemo06 { publicstaticvoidmain(String[] args) { inti=128; byteb= (byte)i;//内存溢出 byte 最大值127 //低 高 //byte,short,char,int,long,float,doub ...
分类:
其他好文 时间:
2021-06-04 19:00:16
阅读次数:
0
Hello World 随便建一个文件夹,存放代码 新建一个java文件 文件后缀名.java Hello 【注意点】系统没有显示文件后缀名,需要手动打开 编写代码 public class Hello{ public static void main(String[] args){ System. ...
分类:
其他好文 时间:
2021-06-04 18:59:52
阅读次数:
0
__all__ = [<string>] 它是一个string元素组成的list变量,定义了当你使用 from <module> import * 导入某个模块的时候能导出的符号(这里代表变量,函数,类等)。 其实就是代码保护,限定本模块中只有哪些能被import。 举例:foo.py __all_ ...
分类:
编程语言 时间:
2021-06-04 18:49:33
阅读次数:
0
public class test{ public static void main(String[] arg){ //Date转为LocalDateTime DateTimeFormatter sdf1 = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm ...
分类:
其他好文 时间:
2021-06-04 18:44:19
阅读次数:
0
注:该方法只能进行数值左侧补0,不能补充其他符号。 第一种: int youNumber = 1; // 0 代表前面补充0 // 3 代表长度为3 // d 代表参数为正数型 String str = String.format("%03d", youNumber); System.out.pri ...
分类:
编程语言 时间:
2021-06-03 18:16:15
阅读次数:
0
C#调用数据库中的Procedure的方法 public ExecutionResult CreateWIPSN(MOBaseInfo moBaseInfo) { ExecutionResult execRes; string sqlText; //private InfoLightDBTools ...
分类:
数据库 时间:
2021-06-03 18:15:04
阅读次数:
0
public static void main(String[] args) { FileOutputStream fos = null; BufferedInputStream bis = null; HttpURLConnection httpUrl = null; int size = 0; ...
分类:
编程语言 时间:
2021-06-03 18:04:25
阅读次数:
0