Skip to content

Instantly share code, notes, and snippets.

@greggyNapalm
Created May 10, 2014 18:38
Show Gist options
  • Save greggyNapalm/c360698a99a6f2c61792 to your computer and use it in GitHub Desktop.
Save greggyNapalm/c360698a99a6f2c61792 to your computer and use it in GitHub Desktop.
>>> dst_addr = '127.0.0.1'
>>> dst_port = 80
>>> 'http://{:s}:{:d}'.format(dst_addr, dst_port)
'http://127.0.0.1:80'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment