Python:实现collatz sequence考拉兹序列算法 from __future__ import annotations def collatz_sequence(n: int) -> list[int]: if not