摘要:
!:编码格式。编码格式。编码格式 !!: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 阅读全文
摘要:
1:res.apparent_encoding 2:res.encoding='utf-8' r.encoding 从HTTP header中猜测的响应内容编码方式 r.apparent_encoding 从内容中分析出的响应内容编码方式(备选编码方式) r.encoding:如果header中不存 阅读全文
摘要:
做了一个小东西,顺便连在一起了。上!(相对路径(需要同一个目录下)与绝对路径分辨一下)#include #include #include #include #include #include #pragma comment(lib, "winmm.lib") #define FrameX 4 #define FrameY 4 #define Frame_height 20 #define F... 阅读全文
摘要:
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(... 阅读全文
摘要:
可以使用PlaySound()函数播放声音文件,该函数原型位于#include <mmsystem.h>中, 因此要使用PlaySound,首先需要添加对这个头文件的引用。 提示:mm就是MultiMedia的简写,多媒体 BOOL PlaySound(LPCSTR pszSound, HMODUL 阅读全文
摘要:
1.http://www.runoob.com/python3/python3-string-strip.html 用于去出字符串末尾指定的字符(默认为空格)。 string.lstrip() 在string的左边删除string string.rstrip() 在string的右边删除string 阅读全文
摘要:
if __name__ == '__main__': 解释:https://zhuanlan.zhihu.com/p/21297237 'gbk' codec can't encode character '\u2b07' in position 17: illegal multibyte sequ 阅读全文
摘要:
super的用法(带了解) 阅读全文