Page 11 - Python Cơ Bản
P. 11

if condition1 :

               indentedStatementBlockForTrueCondition1

           elif condition2 :

               indentedStatementBlockForFirstTrueCondition2

           elif condition3 :

               indentedStatementBlockForFirstTrueCondition3

           elif condition4 :

               indentedStatementBlockForFirstTrueCondition4

           else:

               indentedStatementBlockForEachConditionFalse





                 7[MXGLŷGEWI






          4]XLSR OLɺRK Gɹ GϴY XVɾG  switch ŷ case



                 *SVŷMR






           for iterating_var in sequence:

               statements(s)





          :ɴ Hд
   6   7   8   9   10   11   12   13   14   15   16