擅长:python、mysql、java
<p>不要使用<code>time.sleep</code>,只使用<code>wait</code>选项。你知道吗</p>
<p>官方称</p>
<p><code>The options 'wait' is a boolean for whether or not we need to wait (block) for the background process to finish</code></p>
<p>所以,你只要像我一样跑就行了</p>
<p><code>pync.notify('message', wait=True)</code></p>
<p>参考号:<a href="https://github.com/SeTeM/pync/blob/66fc9f9a30a33c8a6fbe64419f3cd31c7a330e62/pync/TerminalNotifier.py#L69" rel="nofollow noreferrer">notify sourcecode</a></p>