The reptile has been self-cultivation ~ ~ ~! ! !

* Python How to Access the Internet

  Using the built-in battery python [url + lib = urllib] "" He is a package

Use urlopen access web pages

 

 Real one, download one from the website pictures cat '

Maybe has actually the same, normal words will simply pass the string

 

 

We can also use for response

*geturl()

  Access the link address

*info()

  http remote object ..

*getcode()

  State visit

Combat Second, the proper way to get through the URL python, python translation on

   I find initiate a request under review [elements] of the network, access to the Web work there address and other information

 

Guess you like

Origin www.cnblogs.com/ningxinjie/p/10962361.html