結果 : while stack is not empty python