擅长:python、mysql、java
<p>您可以使用<code>split()</code>方法。</p>
<pre><code>s = "hello this is a test"
words = s.split(" ")
print words
</code></pre>
<p>上述代码片段的输出是一个包含以下内容的列表:<code>['hello', 'this', 'is', 'a', 'test']</code></p>
<p>在您的例子中,您可以在子字符串“UID”上进行拆分,并获取列表中的第二个元素以获取您要查找的数字。</p>
<p>请参阅此处的文档:<a href="https://docs.python.org/2/library/string.html#string.split" rel="nofollow">https://docs.python.org/2/library/string.html#string.split</a></p>