擅长:python、mysql、java
<p>你可以替换</p>
<pre><code>print("Error: Please only enter numbers between 1-9")
</code></pre>
<p>与</p>
^{pr2}$
<p>或者搬家</p>
<pre><code>num = input("Enter a number for your calculation in range of 1- 9: ")
num = int(num)
</code></pre>
<p>进入while循环,以便在用户输入超出范围的数字时再次调用它</p>