2019/10/16 learning content

configuration while loop
while condition:
loop
else:
Results

Code continue to perform below the break does not
break to stop the current cycle
continue out of the current cycle, the start of the next cycle

The finite infinite loop into loop
1 loop condition set
2. Set the judgment condition then terminates the loop break

Output Format
% s placeholder string
% d% i placeholder or digital
%% escape Percent Common representatives

And placeholder data must be entered one correspondence
f when filling the placeholder data may be directly filled into

Operators
into arithmetic operators, comparison operators, assignment operators, operator member, logical operators.
+, - , /, + =, - =, =, / = // (rounded) * * (power),% (remainder)
in not the INPUT

Logical operators
and (and), or (or) Non (not) is a digital only False 0

and
two are true is true
before and after are true, behind the output of
the front and rear are false output previous

or
as long as one that is true is true
both before and after are true, the previous output
before and after both are false, the output of the back

Operational priorities
()> not> and> ord

Coding
acsii encoding an English one byte, it does not support Chinese
gbk an English one byte, a Chinese two-byte
utf-8 an English one byte, two bytes Europe, Asia three bytes

1 byte = 8 bits
1Bytes = 8bit

Guess you like

Origin www.cnblogs.com/Rainbow-Fox/p/11688406.html