摘要: 世界上80%的财富落在20%的人手上,如何去平复那80%的人对着20%的人的不满? 给他们塞一个奶嘴,让他们满足于当下,没时间去思考,去不满 如何让他们没时间,让他门不思考? 自媒体发布低质量,标题党的文档,暴力游戏等等,让他们整天沉溺在娱乐中,长时间这样, 大脑经常接收刺激愉悦感的信息,变得对要思 阅读全文
posted @ 2018-03-05 10:14 88aa123 阅读(170) 评论(0) 推荐(0) 编辑
摘要: re模块 在线验证工具:http://regexr.com/ 练习:https://alf.nu/RegexGolf 1 import re 2 m=re.match(r'(\w+) (\w+)(?P<sign>.*)','hello hanxiaoyang!') 3 print(m.string) 阅读全文
posted @ 2018-03-05 10:05 88aa123 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 英文字符串操作 1 import operator 2 str='hello world' 3 str1='nihao' 4 #去空格以及特殊字符 5 print(str.strip()) 6 7 #链接字符串 8 print(str+str1) 9 10 #查找字符 11 print(str.in 阅读全文
posted @ 2018-03-05 09:22 88aa123 阅读(182) 评论(0) 推荐(0) 编辑