Python 循环嵌套
Python 语言允许在一个循环体里面嵌入另一个循环。Python for 循环嵌套语法:for iterating_var in sequence: for iterating_var in sequence: statements(s) statements(s)Python while 循环嵌套语法:while expression: while expression: statement(s) statem