擅长:python、mysql、java
<p>我更像Python:</p>
<pre><code>with open('your_file', 'r') as fp:
# this is the right way to open a file
for line in fp:
if line.startswith('remote ') and line.count(' ') >= 3:
_, ip, port = line.split() # split to every word seperator
print ip, port
</code></pre>