摘要: 在spring security3.x的版本中 hasAnyRole这个方法不会对我们需要认证的身份前面加个前缀ROLE_,在3.x版本hasRole的源码如下 而4.x版本下的会根据我的具体情况看看是不是要加前缀,代码如下 这里的这个坑要小心,如果加了Role_前缀,那么你登录时的角色的前面也需要 阅读全文
posted @ 2018-03-30 19:55 183区展伯 阅读(1991) 评论(0) 推荐(0) 编辑
摘要: import requests from bs4 import BeautifulSoup newsurl='http://news.gzcc.cn/html/xiaoyuanxinwen/' res = requests.get(newsurl) #返回response对象 res.encoding='utf-8' soup = BeautifulSoup(res.text,'htm... 阅读全文
posted @ 2018-03-29 19:49 183区展伯 阅读(110) 评论(0) 推荐(0) 编辑
摘要: import jieba file=open('text','r',encoding = 'utf-8') wordList=list(jieba.cut(file.read())) wordDict={} for word in wordList: if(len(word)==1): continue wordDict[word]= wordList.cou... 阅读全文
posted @ 2018-03-28 17:07 183区展伯 阅读(112) 评论(0) 推荐(0) 编辑
摘要: lyrics="So! Pack yourself and get out of here Stay away, oh leave me alone Shut up now and get out of here I'll never ever forgive you again Don't tell me tell me tell me Tell me you're sorry, indeed... 阅读全文
posted @ 2018-03-26 11:45 183区展伯 阅读(140) 评论(0) 推荐(0) 编辑
摘要: (1) addr='http://news.gzcc.cn/html/2017/xiaoyuanxinwen_1027/8443.html'print(addr[-14:-5]) (2) addr1='https://docs.python.org/3/library/'addr2='turtle' 阅读全文
posted @ 2018-03-21 20:14 183区展伯 阅读(161) 评论(0) 推荐(0) 编辑
摘要: from turtle import * def drawstart(x, y, angle, length): up() setpos((x, y)) down() right(angle) begin_fill() for i in range(5): forward(length) right(144) ... 阅读全文
posted @ 2018-03-15 22:27 183区展伯 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 (1)cd /usr/local (2)cd ../ (3)cd (4)ls -al /usr (5) cd /tmp mkdir a ls (6)mkdir -p a1/a2/a3/a4 (7)rmdir a (8) rmdir -p a1/a2/a3/a4 ls (9)cp .ba 阅读全文
posted @ 2018-03-14 12:25 183区展伯 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1.大数据时代最大的转变就是思维方式的三种转变:全样而非抽样、效率而非精确、相关而非因果 全样而非抽样:过去因为计算机的存储能力和计算能力的限制,在科学分析中都只能进行抽样分析,限制有了大数据的支持,科学分析可以直接对全数据集进行分析,并且在短时间内得到结果。 效率而非精确:过去的科学分析都是抽样的 阅读全文
posted @ 2018-03-07 15:47 183区展伯 阅读(1318) 评论(0) 推荐(0) 编辑
摘要: position:relative是相对原来的位置相对移动,absolute 是相对于父元素的位子移动,这里面我个人对position:relative不是很熟悉所以只是截了这个图,有什么说得不对请指正 要注意如果把postion:设置为absolute的话,元素就会变为inline-block,这 阅读全文
posted @ 2017-05-21 14:03 183区展伯 阅读(346) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #define Max 1000 int j=1; long g=0; char nchar[Max]={""}; int k=0; char ch=NULL; char m[30]={""}; int sym=-1; int error=0; main() { char cha; printf("请输入一串字符串:"); ... 阅读全文
posted @ 2016-12-22 22:31 183区展伯 阅读(1326) 评论(0) 推荐(0) 编辑