擅长:python、mysql、java
<p>添加到<a href="https://stackoverflow.com/a/39608691/5291015">Serge Ballesta's answer</a>,<a href="https://github.com/koalaman/shellcheck/wiki/SC1068" rel="nofollow noreferrer">don't put spaces around the = in assignments</a>,因为shell是空间敏感的。你知道吗</p>
<p>理想情况下应该是这样</p>
<pre><code>status=$(portping $ip $port)
</code></pre>