url='http://www.xiaohua100.cn/index.html'defget(): ret=urlopen(url).read()# 获取网页的源码print(ret)returnget#返回函数 get_func=get_url()#函数接收 get_func()#输出 调用