擅长:python、mysql、java
<p><code>RegisterName</code>是只有一个<code>str</code>元素的<code>list</code>。如果问题<strong>只是打印</strong>您可以尝试:</p>
<pre><code>print 'RegisterName is :', RegisterName[0]
</code></pre>
<p><strong>输出:</strong></p>
<pre><code>RegisterName is : wub
</code></pre>
<p><strong>PS:</strong></p>
<ul>
<li><p>如果不确定变量的类型,请尝试打印:</p>
<pre><code>print type(RegisterName)
</code></pre></li>
<li><p>我建议您使用<a href="http://www.python.org/dev/peps/pep-0008/#naming-conventions" rel="nofollow">Python conventions</a>,名称为<code>SomeName</code>的标识符通常用作类的名称。对于变量,可以使用<code>some_name</code>或<code>register_name</code></p></li>
</ul>