输入psv或者psvm,然后回车或tab,便可输出 public static void main(String [] args){} so/sou/sout 则为 System.out.println(); se/ser/serr 则为 System.err.println(); ctrl+r 查 ...
                            
                            
                                分类:
其他好文   时间:
2020-06-23 13:23:39   
                                阅读次数:
77
                             
                    
                        
                            
                            
                                新建一个rust程序 main.rs ,内容如下: fn main() { println!("hello,world!"); } 命令行运行 rustc main.rs 报错如下: > rustc .\main.rs error: linker `link.exe` not found | = n ...
                            
                            
                         
                    
                        
                            
                            
                                DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyyMMdd"); System.out.println(dtf.format(LocalDateTime.now())); System.out.println(dtf.format(Lo ...
                            
                            
                                分类:
编程语言   时间:
2020-06-22 12:49:40   
                                阅读次数:
41
                             
                    
                        
                            
                            
                                    this:表示本类的属性 public class PhoneClass { //属性 private String model; private int price; //定义一个构造函数-无参 public PhoneClass(){ System.out.println("无参构造函数");  ...
                            
                            
                                分类:
编程语言   时间:
2020-06-21 23:35:26   
                                阅读次数:
65
                             
                    
                        
                            
                            
                                groovy 支持dynamic type,就是可以在调用的时候再给变量赋值。 class student{ def methodMissing(String name,args){ println "${name}" } } def student = new student() student. ...
                            
                            
                                分类:
其他好文   时间:
2020-06-21 18:09:47   
                                阅读次数:
55
                             
                    
                        
                            
                            
                                    1 概要 switch case语句 for循环语句 goto语句 字符串的格式化 运算符 2 switch case语句 package main func main() { /*switch 1 + 1 { case 1: fmt.Println("equal one") case 2: fmt ...
                            
                            
                                分类:
其他好文   时间:
2020-06-21 15:42:26   
                                阅读次数:
51
                             
                    
                        
                            
                            
                                public static void main(String[] args) { String aString="w14-rq22.3"; //只保留数字 aString = aString.replaceAll("[^(0-9)]",""); System.out.println(aString) ...
                            
                            
                                分类:
其他好文   时间:
2020-06-21 15:40:24   
                                阅读次数:
52
                             
                    
                        
                            
                            
                                    1.获取系统当前时间:System类中的currentTimeMillis() long time = System.currentTimeMillis(); //返回当前时间与1970年1月1日0时0分0秒之间以毫秒为单位的时间差。 //称为时间戳 System.out.println(time) ...
                            
                            
                         
                    
                        
                            
                            
                                    java的值传递机制 1.针对于方法内变量的赋值举例: System.out.println("***********基本数据类型:****************"); int m = 10; int n = m; System.out.println("m = " + m + ", n = "  ...
                            
                            
                                分类:
编程语言   时间:
2020-06-20 15:40:23   
                                阅读次数:
49
                             
                    
                        
                            
                            
                                    /** 一个用来进行go routine的函数 */ func print_something(msg string){ for i:= 0;i < 5;i++{ time.Sleep(1 * time.Second) fmt.Println(msg) } } /** 异步相加,并将结果放在通道中  ...
                            
                            
                                分类:
其他好文   时间:
2020-06-20 13:43:41   
                                阅读次数:
52