擅长:python、mysql、java
<p>没有看到这个答案被接受,所以我会尝试一下。你知道吗</p>
<pre><code>from urllib import urlopen
import re
def run():
re1 = '^RUN'
re2 = '^ " url'
file_url = "https://raw.githubusercontent.com/bgruening/docker-recipes/master/galaxy-exom-seq/Dockerfile"
data = urlopen(file_url)
for line in data:
if re.search(re1, line) or re.search(re2, line):
print(line.rstrip('\\\n'))
if __name__ == '__main__':
run()
</code></pre>
<p>我想我会明白的。你知道吗</p>