if 条件1: 语句1 elif 条件2: 语句2 else: 语句3
while 循环条件: 语句
# 示例一 li = ['one','two','three'] for item in li: print(item) # 示例二 for i in range(10): print(i)