To determine the age of 001
By contrast determining assignment statement and conditions, to output a different content, used hereif 满足A条件:输出a内容;else:输出b内容
注意:很多人学Python过程中会遇到各种烦恼问题,没有人帮答疑容易放弃。为此小编建了个Python全栈免费答疑.裙 :七衣衣九起起巴而五(数字的谐音)转换下可以找到了,不懂的问题有老司机解决里面还有最新Python教程项目可拿,,一起相互监督共同进步!
002 and judgment statement
This knowledge has two portions:
1. Format Output: int
data representing the integer data type, input()
a function of input
2. Using and
statement to connect a plurality of conditions corresponding to the use of "or" conditions.
003 Boolean operations
Analyzing the condition is true or false, depending on the conditions, the output of different content
004 elif statement judge
005 secondary screening
006 Rock Paper Scissors
007 while cycling
008 cycles sum
009 continue Statement
010 break statement
011 nested loop
012 end of each line treatment
013 loop nest Print Little Star
Text and images in this article from the network with their own ideas, only to learn, exchange, not for any commercial purposes, belongs to original author, if any questions, please contact us for treatment.