梁振英在礼拜二(12月10日)的答问大年夜会开端之际在其演说中报歉,但强调他在违章建筑问题膳绫腔有隐瞒的意图和念头。
Python 艺术二维码生成器
- pip install MyQR
- myqr https://github.com
- myqr https://github.com -v 10 -l Q

假装浏览器身份
- pip install fake-useragent
- from fake_useragent import UserAgent
- ua = UserAgent()
- ua.ie
- # Mozilla/5.0 (Windows; U; MSIE 9.0; Windows NT 9.0; en-US);
- ua.msie
- # Mozilla/5.0 (compatible; MSIE 10.0; Macintosh; Intel Mac OS X 10_7_3; Trident/6.0)'
- ua['Internet Explorer']
- # Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB7.4; InfoPath.2; SV1; .NET CLR 3.3.69573; WOW64; en-US)
- ua.opera
- # Opera/9.80 (X11; Linux i686; U; ru) Presto/2.8.131 Version/11.11
- ua.chrome
- # Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.2 (KHTML, like Gecko) Chrome/22.0.1216.0 Safari/537.2'

- python shell
- pip install sh
- from sh import ifconfig
- print ifconfig("eth0")
处理中文文本内容
- pip install -U textblob#英文文本的情感分析
- pip install snownlp#中文文本的情感分析
- from snownlp import SnowNLP
- text = "I am happy today. I feel sad today."
- from textblob import TextBlob
- blob = TextBlob(text)
- TextBlob("I am happy today. I feel sad today.")
- blob.sentiment
- Sentiment(polarity=0.15000000000000002, subjectivity=1.0)
- s = SnowNLP(u'这个器械真心很赞'
推荐阅读
Windows 10 16257完美启用控制台新版配色的操作方法
很多人在启用Windows10 16257控制台的新版配色时,发清楚明了一个小问题,那就是“大年夜Win+X菜单启动的Powershell和CMD标题栏上右击,选择“属性”,弹出窗口的色彩选项>>>详细阅读
本文标题:那些有趣/用的Python库
地址:http://www.17bianji.com/lsqh/36609.html
1/2 1

网友点评
精彩导读
科技快报
品牌展示