擅长:python、mysql、java
<p>只需将<code>search</code>更新为<code>find all</code>并删除组。你知道吗</p>
<pre><code>import re
try:
found_all = re.findall('cpd(.+?)_c', reactionEquation)
for found in found_all :
print(found)
except AttributeError:
# AAA, ZZZ not found in the original string
pass # apply your error handling
</code></pre>