擅长:python、mysql、java
<p>你好像有这个</p>
<pre><code>input_value1 = input("Do you want to change alpha? (Yes/No) ").lower()
while input_value1=="yes":
input_value1 = input("Do you want to change alpha? (Yes/No) ").lower()
if input_value1 == "yes":
program = MainFormula()
print(program)
else:
print("Congratulations! You are done with the task.")
</code></pre>
<p>一个简单的方法是避免问两次问题:</p>
<pre><code>while input("Do you want to change alpha? (Yes/No) ").lower()=="yes":
program = MainFormula()
print(program)
print("Congratulations! You are done with the task.")
</code></pre>