摘要: !:编码格式。编码格式。编码格式 !!: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 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 做了一个小东西,顺便连在一起了。上!(相对路径(需要同一个目录下)与绝对路径分辨一下)#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 阅读(1191) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 可以使用PlaySound()函数播放声音文件,该函数原型位于#include <mmsystem.h>中, 因此要使用PlaySound,首先需要添加对这个头文件的引用。 提示:mm就是MultiMedia的简写,多媒体 BOOL PlaySound(LPCSTR pszSound, HMODUL 阅读全文
posted @ 2018-05-17 15:23 leolaosao 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(232) 评论(0) 推荐(0) 编辑
摘要: super的用法(带了解) 阅读全文
posted @ 2018-05-11 21:31 leolaosao 阅读(160) 评论(0) 推荐(0) 编辑
摘要: User-Agent是一个特殊字符串头 http://www.cnblogs.com/guihailiuli/p/4433520.html 阅读全文
posted @ 2018-05-09 22:15 leolaosao 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 不需要用到gets,直接scanf_s就可以,‘ ’ 区分不是需要读取‘ ’,(我很傻.......) book[]用来标记重复,为了不重复输出。 str[][]字符串,用二维数组来存字符串可以,但是人容易浪费内存,要不就是爆栈。 len[]用来统计次数,且下角标和字符串的一样。 等有时间研究一下用 阅读全文
posted @ 2018-05-09 10:51 leolaosao 阅读(1742) 评论(0) 推荐(0) 编辑