関連ワード:  python test if iterator has next  
結果 : python test if iterator has next