刚接触 Kotlin,如何找到数字的因数?
例如 24 应该给出 1, 2, 3, 4, 6, 8, 12, 24?
我知道如何使用列表理解来执行此 python,但不确定如何在 Kotlin 中正确执行此操作。
python kotlin
kotlin ×1
python ×1