会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
大春绿
博客园
首页
新随笔
联系
订阅
管理
2021年5月6日
银行
摘要: class atm(): #定义ATM类 def __init__(self): self.money=1000 #初始化 def cun(self): print("存钱") m=int(input("输入存钱金额")) self.money+=m #存钱程序 def qu(self): prin
阅读全文
posted @ 2021-05-06 07:34 阳仔的代码日常
阅读(49)
评论(0)
推荐(0)
2020年10月26日
爬虫实战爬取58同城房源信息
摘要: import requests from lxml import etree if __name__ == '__main__': #爬取到页面源码数据 url='https://su.58.com/ershoufang/' headers={ 'User-Agent':'Mozilla/5.0 (
阅读全文
posted @ 2020-10-26 14:54 阳仔的代码日常
阅读(694)
评论(0)
推荐(0)
2020年10月25日
爬虫实战爬取糗图百科图片
摘要: import requests import re import os import time if name=="main": #创建一个文件夹保存爬取图片 if not os.path.exists('./qiutulibs/'): os.mkdir('./qiutulibs') #如何爬取图片
阅读全文
posted @ 2020-10-25 09:42 阳仔的代码日常
阅读(174)
评论(0)
推荐(0)
公告