擅长:python、mysql、java
<p>好吧,括号和逗号很容易去掉,只要在代码中去掉它们就行了。在</p>
<pre><code>print(' '.join(map(str, attrlist)))
</code></pre>
<p>但既然您想要自定义间距,就应该查看<a href="https://docs.python.org/2/library/stdtypes.html#str.format" rel="nofollow">^{<cd1>}</a>。它使用特殊的<a href="https://docs.python.org/2/library/string.html#format-string-syntax" rel="nofollow">format string syntax</a>。在</p>
^{pr2}$