擅长:python、mysql、java
<p>如果这是你想要的:</p>
<pre><code>def fn(N):
result = []
if isinstance(N, list):
for i in N:
G = []
for j in range(1,i+1):
if not i%j and i >= j:
G.append(j)
result.append(G)
return result
</code></pre>
<p>或者如果你想要简短的版本:</p>
^{pr2}$
<p>输出:</p>
<pre><code>[[1, 2, 4], [1, 2, 3, 4, 6, 12], [1, 3, 5, 15]]
</code></pre>