会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
21keya
博客园
首页
新随笔
联系
订阅
管理
07 2018 档案
函数和方法的区别
摘要:def eat(): print(1) print(2) eat() #调用函数 class Person: def eat2(self): print(1) print(2) p=person() p.eat2() #使用方法
阅读全文
posted @
2018-07-12 09:13
21keya
阅读(58)
评论(0)
推荐(0)
打开一个网站
摘要:import urllib #引入url库 def getUrlList(): #定义一个函数 res=urllib.urlopen(‘http://www.budejie.com/vedio’) #打开一个网站 html=res.read() #取得其中的html print(html) impo
阅读全文
posted @
2018-07-11 09:07
21keya
阅读(1239)
评论(0)
推荐(0)
公告