1、do-while循环语法:do{循环执行的代码}while(循环条件);do-while循环的执行逻辑:先执行第一次循环语句,然后执行循环条件,若条件为true时则执行第二次循环语句,如此反复循环,一直到循环条件为false时循环才会结束。也就是说,do-while循环是先执行,后判断;while循环是先判断,就执行。do-while循环常用于先操作,后判断的情况,如:登录时的密码检测。练习:
分类:
编程语言 时间:
2019-09-20 20:44:35
阅读次数:
93
function get_dir_parent(dir:string;n:integer):string; //n为几级父目录varst:string;i:integer;begin st:=GetCurrentDir; SetCurrentDir(dir); for i:=1 to n do be ...
https://yz.chsi.com.cn/apply/main.do 网上预报名时间为2019年9月24日至9月27日,每天9:00—22:00 网上确认时间:2019年11月5日至9日22:00,审核不通过需要补充材料的截止时间2019年11月10日12:00。 下载准考证时间:2019年12 ...
分类:
其他好文 时间:
2019-09-18 19:43:47
阅读次数:
116
drop procedure if exists jyf_test; DELIMITER ;; CREATE PROCEDURE jyf_test() BEGIN DECLARE a INT UNSIGNED DEFAULT 1; WHILE a <= 20 DO INSERT INTO 。。。。。... ...
分类:
其他好文 时间:
2019-09-17 14:41:30
阅读次数:
92
Do you like sports? phrase (短语) Yes keep healthy/fit lose weight be more active be positive about life be more confident NO no time don't like sweatin ...
分类:
其他好文 时间:
2019-09-17 09:27:05
阅读次数:
120
循环结构 根据循环条件,重复性的执行某段代码。 有while、do…while、for三种循环语句。 注:JDK1.5提供了foreach循环,方便的遍历集合、数组元素。 循环语句功能 在某些条件满足的情况下,反复执行特定代码的功能 循环语句的四个组成部分 初始化部分(init_statement) ...
分类:
其他好文 时间:
2019-09-16 23:16:23
阅读次数:
100
在my.cnf确认主和从的server_id不一致 主: + + + + + +| File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set |+ + + + + +| mysql-bin.000048 | 10478 ...
分类:
数据库 时间:
2019-09-16 22:00:26
阅读次数:
175
__libc_csu_init _init _start call_gmon_start deregister_tm_clones register_tm_clones __do_global_dtors_aux frame_dummy __libc_csu_init __libc_csu_fini ...
分类:
其他好文 时间:
2019-09-16 21:50:15
阅读次数:
88
class Solution: def sortColors(self, nums: List[int]) -> None: """ Do not return anything, modify nums in-place instead. """ head, now, tail = 0, 0, l... ...
分类:
其他好文 时间:
2019-09-16 21:25:05
阅读次数:
103
题目: In your childhood you most likely had to solve the riddle of the house of Santa Claus. Do you remember that the importance was on drawing the hous ...
分类:
其他好文 时间:
2019-09-16 09:59:12
阅读次数:
99