会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
leolaosao
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2018年5月27日
爬取笔趣阁小说(一念永恒)
摘要: !:编码格式。编码格式。编码格式 !!:http://xiaorui.cc/2016/02/19/%E4%BB%A3%E7%A0%81%E5%88%86%E6%9E%90python-requests%E5%BA%93%E4%B8%AD%E6%96%87%E7%BC%96%E7%A0%81%E9%9
阅读全文
posted @ 2018-05-27 12:57 leolaosao
阅读(820)
评论(0)
推荐(0)
2018年5月24日
爬虫requests爬去网页乱码问题
摘要: 1:res.apparent_encoding 2:res.encoding='utf-8' r.encoding 从HTTP header中猜测的响应内容编码方式 r.apparent_encoding 从内容中分析出的响应内容编码方式(备选编码方式) r.encoding:如果header中不存
阅读全文
posted @ 2018-05-24 22:22 leolaosao
阅读(319)
评论(0)
推荐(0)
2018年5月22日
c语言项目《商品库存管理系统和贪吃蛇》
摘要: 做了一个小东西,顺便连在一起了。上!(相对路径(需要同一个目录下)与绝对路径分辨一下)#include #include #include #include #include #include #pragma comment(lib, "winmm.lib") #define FrameX 4 #define FrameY 4 #define Frame_height 20 #define F...
阅读全文
posted @ 2018-05-22 20:26 leolaosao
阅读(1213)
评论(0)
推荐(0)
2018年5月20日
requests bs4 datetime re json
摘要: import re import json import requests from bs4 import BeautifulSoup from datetime import datetime url='https://news.qq.com/a/20180520/008334.htm' fuck={} res=requests.get(url) soup = BeautifulSoup(...
阅读全文
posted @ 2018-05-20 17:47 leolaosao
阅读(188)
评论(0)
推荐(0)
2018年5月17日
添加背景音乐。c
摘要: 可以使用PlaySound()函数播放声音文件,该函数原型位于#include <mmsystem.h>中, 因此要使用PlaySound,首先需要添加对这个头文件的引用。 提示:mm就是MultiMedia的简写,多媒体 BOOL PlaySound(LPCSTR pszSound, HMODUL
阅读全文
posted @ 2018-05-17 15:23 leolaosao
阅读(332)
评论(0)
推荐(0)
2018年5月14日
strip()
摘要: 1.http://www.runoob.com/python3/python3-string-strip.html 用于去出字符串末尾指定的字符(默认为空格)。 string.lstrip() 在string的左边删除string string.rstrip() 在string的右边删除string
阅读全文
posted @ 2018-05-14 21:35 leolaosao
阅读(168)
评论(0)
推荐(0)
2018年5月13日
爬虫学习中遇到的问题
摘要: if __name__ == '__main__': 解释:https://zhuanlan.zhihu.com/p/21297237 'gbk' codec can't encode character '\u2b07' in position 17: illegal multibyte sequ
阅读全文
posted @ 2018-05-13 20:16 leolaosao
阅读(255)
评论(0)
推荐(0)
2018年5月11日
super的用法(带了解)
摘要: super的用法(带了解)
阅读全文
posted @ 2018-05-11 21:31 leolaosao
阅读(197)
评论(0)
推荐(0)
2018年5月9日
user-agent
摘要: User-Agent是一个特殊字符串头 http://www.cnblogs.com/guihailiuli/p/4433520.html
阅读全文
posted @ 2018-05-09 22:15 leolaosao
阅读(141)
评论(0)
推荐(0)
输入n个字符串,用空格隔开。这些字符串中有重复出现的。现在统计每个字符串出现的次数,并找出出现次数最多的字符串。
摘要: 不需要用到gets,直接scanf_s就可以,‘ ’ 区分不是需要读取‘ ’,(我很傻.......) book[]用来标记重复,为了不重复输出。 str[][]字符串,用二维数组来存字符串可以,但是人容易浪费内存,要不就是爆栈。 len[]用来统计次数,且下角标和字符串的一样。 等有时间研究一下用
阅读全文
posted @ 2018-05-09 10:51 leolaosao
阅读(1793)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告