<p>我有个<a href="https://www.cnpython.com/qa/" class="inner-link">python问题</a>:</p>
<blockquote>
<p>Write a program that asks the user for a limit, and then prints out
the sequence of square numbers that are less than or equal to the
limit provided.</p>
<p>Max: 10</p>
<p>1</p>
<p>4</p>
<p>9 </p>
<p>Here the last number is 9 because the next square number (16) would be
greater than the limit (10).</p>
<p>Here is another example where the maximum is a square number:</p>
<p>Max: 100 1</p>
<p>4</p>
<p>9</p>
<p>16</p>
<p>25</p>
<p>36</p>
<p>49</p>
<p>64</p>
<p>81</p>
<p>100</p>
</blockquote>
<p>但我不知道怎么做。到目前为止</p>
<pre><code>maximum = int(input("Max: "))
for i in range(1, maximum):
</code></pre>
<p>但不知道如何处理这些数字并使之平方。在</p>
<p>谢谢</p>
<p>编辑:我有</p>
^{pr2}$