基本语法

  • Python for 循环嵌套语法:
  1. for iterating_var in sequence:
  2. for iterating_var in sequence:
  3. statements(s)
  4. statements(s)
  • Python while 循环嵌套语法:
  1. while expression:
  2. while expression:
  3. statement(s)
  4. statement(s)