码迷,mamicode.com
首页 >  
搜索关键字:println    ( 5792个结果
rust数据类型
``` fn main() { //char支持4个字节,支持emoji let jp = "ゆ"; let emoji = "?"; let ch = "囧"; println!("jp is {}",jp); println!("ch is {}",ch); println!("emoji is... ...
分类:其他好文   时间:2019-12-01 10:16:10    阅读次数:127
rust控制流
``` fn main() { let number = 6; if number % 4 == 0 { println!("number is divisible by 4"); } else if number % 3 == 0 { println!("number is divisible b... ...
分类:其他好文   时间:2019-12-01 10:14:45    阅读次数:98
rust变量与可变性
``` fn main() { //let x = 5; let mut x = 5; //通过const定义常量名称要大写,并且值不可更改 const Y:i32=6; println!("Y is {}",Y); println!("The value of x is {}", x); x = ... ...
分类:其他好文   时间:2019-12-01 10:11:27    阅读次数:73
rust 函数的使用
``` fn main() { println!("Hello, world!"); another_function(2,3); let y ={ let x =3; //表达式的结尾没有分号,如果在表达式的结尾加上分号,它就变成了语句,而语句不会返回值。 x+1 }; println!(" th... ...
分类:其他好文   时间:2019-12-01 10:02:09    阅读次数:105
rust猜数游戏代码
``` use std::io; use rand::Rng; use std::cmp::Ordering; fn main() { println!("Guess the number!"); let secret_number = rand::thread_rng().gen_range(1,... ...
分类:其他好文   时间:2019-12-01 09:27:33    阅读次数:98
字母大小写字母转换
例:String str = "AbC"; 把字符串所有字母变成小写: System.out.println(str.toLowerCase()); 把字符串所有字母大写: System.ouxntln(str.toUpperCase()); 1、字母小写a-z:97-122; char a = ' ...
分类:其他好文   时间:2019-11-30 21:32:56    阅读次数:206
java 包的理解与使用
java中的包可以分为两种:内置包、用户自己定义的包。 一、包的使用 1、创建PackageTest.java package com.packtest; public class PackageTest { public void getTest() { System.out.println("m ...
分类:编程语言   时间:2019-11-29 23:58:16    阅读次数:164
if语句
/*单if语句 if else if else if 扩展 if else if */ public class if{ public static void main(String[] agrs){ int a=1; int b=4; if(a<b){ System.out.println("最大 ...
分类:其他好文   时间:2019-11-29 23:39:33    阅读次数:81
golang log 使用
原文:https://www.jianshu.com/p/d634316a9487 在我们开发程序后,如果有一些问题需要对程序进行调试的时候,日志是必不可少的,这是我们分析程序问题常用的手段。 日志使用 日志分析,就是根据输出的日志信息,分析挖掘可能的问题,我们使用fmt.Println系列函数也可 ...
分类:其他好文   时间:2019-11-29 22:20:07    阅读次数:109
Intellj Idea 快捷键入门
Intellj IDEA快捷键入门 时间 : 2019/11/29 系统 : Win10系统 版本 :Intellj Idea 2018.3 背景 : 内容: 1.自动补全 最基本的的有sout,psvm,fori等自动生成System.out.println,public static void ...
分类:其他好文   时间:2019-11-29 12:30:12    阅读次数:130
5792条   上一页 1 ... 77 78 79 80 81 ... 580 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!