Skip to content

Instantly share code, notes, and snippets.

@lufeihaidao
Created April 13, 2014 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lufeihaidao/10590975 to your computer and use it in GitHub Desktop.
Save lufeihaidao/10590975 to your computer and use it in GitHub Desktop.
Q13 of python challenge
import xmlrpclib
xmlrpclib.ServerProxy('http://www.pythonchallenge.com/pc/phonebook.php').phone('Bert')
require "xmlrpc/client"
phonebook = XMLRPC::Client.new("www.pythonchallenge.com", "/pc/phonebook.php").proxy
puts phonebook.phone('Bert')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment