1.分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。(知识点:循环语句) package ssa; public class lianxi { public static void main(String[] args) { int sum=0; for(int ...
分类:
编程语言 时间:
2020-03-30 13:05:29
阅读次数:
67
嵌套循环 可以是for循环 while循环也可以是do-while循环 这三着进行组合嵌套 循环思路:先执行外层循环,内层循环作为外层循环的循环体,直到内层循环执行完毕,再次计算外层循环,根据条件决定是否继续执行外层循环。 嵌套循环输出九九乘法表: ...
分类:
编程语言 时间:
2020-03-27 00:39:41
阅读次数:
56
while(条件){ //循环体 重复的逻辑 } do{ //循环体 }while(条件) 1 <script> 2 var i = 1; 3 while(i<=10) { 4 console.log("我爱中国"); 5 i++; 6 } 7 // do { 8 // console.log("我 ...
分类:
Web程序 时间:
2020-03-26 20:00:49
阅读次数:
103
Sometimes you'd like to measure how two implementations compare in regards to run time. In this lesson you will learn how to quickly do this using Con ...
分类:
Web程序 时间:
2020-03-26 19:44:25
阅读次数:
87
基本语法: while: while(循环条件){ 语句块; } do while: do{ 语句块; }while(条件); while和do-while的比较 while 循环和 do-while 循环的相同处是:都是循环结构,使用 while(循环条件) 表示循环条件,使用大括号将循环操作括起 ...
分类:
编程语言 时间:
2020-03-26 13:57:45
阅读次数:
85
主要使用iconv cat b |while read line do iconv -f gbk -t utf8 $line > a [[ $? -ne 0 ]] && { echo $line } mv a $line done b文件中存放着需要修改的文件路径 可多个文件路径,每行一条路径 ...
分类:
系统相关 时间:
2020-03-26 13:50:02
阅读次数:
519
Problem : Given an array nums and a value val, remove all instances of that value in place and return the new length. Do not allocate extra space for ...
分类:
其他好文 时间:
2020-03-26 01:25:20
阅读次数:
65
Problem : Given a sorted array nums, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate ...
分类:
其他好文 时间:
2020-03-26 01:03:12
阅读次数:
78
一、xShell6、xFtp6 安装 1、下载 (1)目的: xShell6 是一款强大的安全终端软件,可以用于登陆、操作远程的 Linux 服务器。 xFtp6 用于上传文件到服务器,从服务器下载文件。 (2)下载地址: https://www.netsarang.com/zh/xshell-do ...
分类:
系统相关 时间:
2020-03-25 23:18:32
阅读次数:
97
| 好看请赞,养成习惯 你有一个思想,我有一个思想,我们交换后,一个人就有两个思想 If you can NOT explain it simply, you do NOT understand it well enough 现陆续将Demo代码和技术文章整理在一起 "Github实践精选" ,方便 ...
分类:
编程语言 时间:
2020-03-25 23:07:21
阅读次数:
85