擅长:python、mysql、java
<p>我觉得你根本不需要正则表达式。你知道吗</p>
<p>根据<a href="https://github.com/MatMaul/pynetgear" rel="nofollow noreferrer">PyNetgear docs</a>,<code>get_attached_devices</code>返回命名元组的列表。您需要遍历列表并打印mac值:</p>
<pre><code>for item in devices:
print(item.mac)
</code></pre>