------Java Training, Android training, iOS training,. NET training, look forward to communicating with you! -------"Loop Structure"1 , circular structure Introduction:Loops are executing the same block of code again and again2. Several conditions
The original understanding of continue stays on the surface, roughly thinking that
After executing this statement, the system returns to the iteration header (which is considered to be an import part). I did not expect that there are huge
1. If ... else1 a=62if a>=5:3 print("TheA is bigger than 5")4Else:5 print( " The A is smaller than 5 ")2. For loop1 # for I in range: #默认从0开始, stepping is 1 equivalent to C language for (i=0;i 2 for in Range (1,10,3):# starting from 1, the
Use newGo--Define variable, @ startDECLARE @hello as varchar (20)--Assigned valueSet @hello = ' Sales Department '--You can use variables as parameter values for the selection criteria--select *from bumen where name [email protected]Select does not
Day 4: loop structure (while, do... While, ),... While1. Loop Structure (while, do... While,)
1.1. What is a loop structure
In daily life, there will be a lot of things that need to be done repeatedly, such as four seasons of every year, 7 days of
If tableSyntax: If then [else ]Syntax: If DO is a test expression. The evaluation result must be true or false.If the test result is true, after then or do is executedThe result is the return value of the IF expression.
Case
Return is the function that exits the loop body, which is equivalent to ending the method.
The function of break is to end the loop, jump out of the loop body, and execute the subsequent program.
The role of continue is to end the cycle and
application of the while statement
Examples are as follows:1 """2 User Login system, can only log in at most three times3 after the third failure, the program terminates4 5 """6User_table = {"python":"Important","Java":"more_important","Shell":
What happens when the main thread crashes and other threads continue to run? (2) -- Linux general technology-Linux programming and kernel information. Read the following for details. An auxiliary means to diagnose this crash is to capture the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.