Python zero-based learning [record] novice will learn

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教程项目可拿,,一起相互监督共同进步!

 
01 to determine the age .png

 

002 and judgment statement

This knowledge has two portions:
1. Format Output: intdata representing the integer data type, input()a function of input
2. Using andstatement to connect a plurality of conditions corresponding to the use of "or" conditions.

 
02 and statement to determine .png

 

003 Boolean operations

Analyzing the condition is true or false, depending on the conditions, the output of different content

 

 
03 Boolean operations .png

004 elif statement judge

 
04 elif statement to determine .png

005 secondary screening

 
05 secondary screening .png

006 Rock Paper Scissors

 
06 Rock Paper Scissors .png

007 while cycling

 
07 while circulating .png

008 cycles sum

 
08 cycles sum .png

009 continue Statement

 
09 continue statement .png

010 break statement

 
10 break statement .png

011 nested loop

 
11 nested loop .png

012 end of each line treatment

 
12 end of each line treatment .png

013 loop nest Print Little Star

 
13 little stars .png print loop nest
 Summary Note: Many people learn Python process will encounter a variety of problems to worry about, no one to help answering easy to give up. For this reason small series built a Python full-stack free Q & A skirt: under seven Yiyi nine plays from Pakistan and five (digital homonym) conversion can be found, but not the older drivers have problems to solve, there is also the latest Python Tutorial Project You can get together with each other ,, supervise progress together!

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.

 
 

Guess you like

Origin www.cnblogs.com/chengxuyuanaa/p/12410922.html
Recommended