Python:实现质因数算法 from __future__ import annotations def prime_factors(n: int) -> list[int]: i = 2 factors