一、数组 定义一个新数组: int[] a = new int[20]; 也可以 4种循环: 1.while循环 2.for循环 3.foreach x把a中数据全都读一遍,但是有缺陷,没有办法读取下标。 4.do-while for循环随机生成50个随机数并用foreach循环打印出来: 1 st ...
分类:
编程语言 时间:
2020-02-29 18:57:15
阅读次数:
89
回到: "Linux系列文章" "Shell系列文章" "Awk系列文章" break和continue break可退出for、while、do...while、switch语句。 continue可让for、while、do...while进入下一轮循环。 next和nextfile next会 ...
分类:
其他好文 时间:
2020-02-29 11:38:59
阅读次数:
67
u-boot环境变量u-boot环境变量environmentu-boot环境变量一、环境变量优先级环境变量存在形式do_printenvdo_setenvdo_svaeenvdo_getenv u-boot环境变量 一、环境变量 优先级 环境变量的优先级高于代码中的值。 环境变量存在形式 环境变量... ...
分类:
其他好文 时间:
2020-02-28 22:55:39
阅读次数:
80
The simple answer to that is, "Kernel Developers do not put blind faith in anything". When any data is passed to the kernel space from userspace, it i ...
分类:
其他好文 时间:
2020-02-28 18:52:41
阅读次数:
85
# # COMMON SPRING BOOT PROPERTIES## This sample file is provided as a guideline. Do NOT copy it in its# entirety to your own application. ^^^# # # COR ...
分类:
编程语言 时间:
2020-02-28 17:11:13
阅读次数:
63
之前用while循环写了一段代码,现在改为用for循环来写,代码如下: hongtao_age = 38 for i in range(5): guess_age = int(input("Please guess the hongtao's age: ")) if guess_age == hon ...
分类:
其他好文 时间:
2020-02-28 16:04:47
阅读次数:
59
首先,我们在桌面上先创建一个“.bat”格式的文件,文件名为“数字雨.bat”,创建好了之后右键点击编辑。 在其中输入: @echo off title 数字雨 color 0a setlocal ENABLEDELAYEDEXPANSION for /l %%i in (0) do ( set " ...
分类:
其他好文 时间:
2020-02-28 14:09:48
阅读次数:
209
【题目大意】 给出几本书的信息,包括编号,名字,出版社,作者,出版年份,关键字;然后给出几个请求,分别按照1->名字,2->出版社等对应信息查询符合要求的书的编号。 【思路】 模拟。 【坑】 1) 根据空格判断关键字key,遇到空格存下前一个key,则到最后一个key没有保存,退出while循环后要 ...
分类:
其他好文 时间:
2020-02-28 13:55:02
阅读次数:
63
#region //右上 for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { if (i > j) { Console.Write("\t"); } else { Console.Write("{0}*{1}={2}\t", i ...
分类:
其他好文 时间:
2020-02-27 23:46:02
阅读次数:
215
猜年龄只能猜三次 age = 18 count = 0 while count<3: age = int(input("age:")) if age == 18: print("对了") exit() elif age >18: print("大了") else: print("小了") count ...
分类:
其他好文 时间:
2020-02-27 23:35:49
阅读次数:
53