擅长:python、mysql、java
<p>对于第一个,您只需将<code>while True</code>语句添加到代码底部,然后在该语句下方键入<code>run_name of the voice assistant</code>。为了停止循环,只需添加一个if语句,就像您对其他语句所做的那样</p>
<blockquote>
<p>elif 'stop' in command:<br/>
talk('Ok sir,have a great day!)<br/>
exit('name of your assistant that you have registered at the top')</p>
</blockquote>
<p>我不会回答第二个问题,因为我对此不太确定。而且@AzyCrw4282已经给出了一个明确而完美的答案</p>
<p><a href="https://i.stack.imgur.com/8jny6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8jny6.png" alt="enter image description here"/></a><a href="https://i.stack.imgur.com/gP6un.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gP6un.png" alt="Here are some examples"/></a></p>