擅长:python、mysql、java
<blockquote>
<p>then i want to use the varable s in an os.system</p>
</blockquote>
<p>使用<a href="https://docs.python.org/3/library/stdtypes.html#str.format" rel="nofollow">^{<cd1>}</a>函数。</p>
<pre><code>os.system("shutdown -s -t 10 -c {}".format(s))
</code></pre>