The next day, June

1.while loop 
while condition:
loop (block)
when the condition is satisfied, the cycle continues, when the end of the loop condition is not satisfied.
BREAK: Exit the current cycle
continue: This stops the current cycle, perform the next cycle

2. formatted output
% s string placeholder
% d numeric placeholders

3. operator
logic operation
and and
or or
not true or both false, true nor false either
sequentially
() ==> not ==> and ==> or
the digital operation
x or y if x is not 0, the value of x; y otherwise,
and the opposite or
   x or y if x == 0 ,, so that y, x otherwise.
Print (. 1 or 2) 
Print (2 or. 3)
Print (0 or. 4)

Print (0 or. 1 or. 3 or 0 or. 5)
Print (2 <. 1 and. 4>. 6 or. 3 and. 4>. 5 or. 6)
Print ( 2> 3 and 3)


as a beginner, because some of the pressure and had to choose another profession, my parents wanted to say, first doing this work, so you have the ability, and back to work.
Tomorrow to interview an electrical company, hoping to pass the interview.



Guess you like

Origin www.cnblogs.com/q402599/p/10963553.html