擅长:python、mysql、java
<p>假设第一个chr是正确的吗?如果是,请使用以下方法:</p>
<pre><code>import re
chrlist = re.findall("chr[0-9]+", open('file').read())
# ^ this is a list with all chr(whatever numbers)
for chr in chrlist:
if chr != chrlist[0]
print("Chr does not match")
break
</code></pre>