use urllib2 2009/4/12 <zhangle2...@gmail.com>: > hi, > > I am just learning Python and get a problem when trying this example: > > from urllib import urlopen > doc=urlopen("http://www.python.org").read() > print(doc) > > when i run this, i was tould that 'cannot import name "urlopen" > > > What's wrong with this code? Do i need to place my code in some > specific directory? Thanks a lot. ' > -- > http://mail.python.org/mailman/listinfo/python-list >
-- Sincerely yours, Eugene Perederey -- http://mail.python.org/mailman/listinfo/python-list