# -*- coding: utf-8 -*-
#python 27
#xiaodeng
#导包三种方法



#(常用)完整的导入,也是最基本的方法
import re


#自己定义别名,一般情况下尽量少用此办法,不方便理解,也不方便其他人看代码,个人理解~~~
import urllib as xiaodeng
html=xiaodeng.urlopen('http://www.163.com')
print html.readline()


#(常用)第三种方法
from urllib import urlopen
urlopen('http://www.163.com')

 

相关文章:

  • 2022-02-26
  • 2021-12-19
  • 2021-10-16
  • 2021-07-18
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
猜你喜欢
  • 2023-03-18
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2022-03-08
  • 2022-12-23
相关资源
相似解决方案