擅长:python、mysql、java
<p>我认为regex(regices?</s>在这里太过分了</p>
<p>首先,切掉填充点后的所有内容:</p>
<pre><code>line = line.split('●')[0] # Split on filled dots, then take only the first part
</code></pre>
<p>现在,数一数空点:</p>
<pre><code>result = line.count('○') # Count occurrences
</code></pre>