上一页 1 2 3 4 5 6 7 8 9 ··· 21 下一页
摘要: 思路:将I Love You这样的字符串中的每一个字符,将他的Unicode码都就进行加或减去一个特定的数, 在传送过程中,如果被截获,获取的也是一段混乱的文章,当收到这段文章后,按相同的方式对Unicode编码减去或加上这个特定的数,就回到了原来的值, 注意:空格不做处理 小写字母,大写字母加或减 阅读全文
posted @ 2019-05-23 16:08 木&子 阅读(624) 评论(0) 推荐(0) 编辑
摘要: 小小总结一下,以防过几天忘记,自己的复习资料,如果能帮到大家,也是有所作用!! 1,字符转化为Unicode编码方法: ord("字符") 1,Unicode编码转化为字符方法: chr(65535) 阅读全文
posted @ 2019-05-23 14:40 木&子 阅读(8297) 评论(0) 推荐(0) 编辑
摘要: samp_string = "Whatever you are, be a good one." for i in samp_string: print(i) for i in range(0,len(samp_string)-2,2): print(samp_string[i]+samp_string[i+1]) print('A=',ord("A")) print('65... 阅读全文
posted @ 2019-05-22 22:17 木&子 阅读(326) 评论(0) 推荐(0) 编辑
摘要: # Strings have many methods wo can use rand_string=" life is a beautiful struggle " print("去除左边空格:",rand_string.lstrip()) print("去除右边的空格:",rand_string.rstrip()) print("去除两边的空格:",rand_string.s... 阅读全文
posted @ 2019-05-22 22:16 木&子 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 格式化对象为字符串:%s 格式化对象为整数:%d 阅读全文
posted @ 2019-05-22 17:38 木&子 阅读(7783) 评论(0) 推荐(0) 编辑
摘要: 最重要的快捷键1. ctrl+shift+A:万能命令行2. shift两次:查看资源文件新建工程第一步操作1. module设置把空包分层去掉,compact empty middle package2. 设置当前的工程是utf-8,设置的Editor-->File Encodings-->全部改 阅读全文
posted @ 2019-05-21 21:08 木&子 阅读(458) 评论(0) 推荐(0) 编辑
摘要: 今天在看代码时,发现程序使用了 request.getScheme() 。不明白是什么意思,查了一下。结果整理如下: 1、request.getScheme() 返回当前链接使用的协议;一般应用返回http;SSL返回https; 2、在程序中的应用如下: 3、复习一下request 的常用方法: 阅读全文
posted @ 2019-04-19 16:13 木&子 阅读(1117) 评论(0) 推荐(0) 编辑
摘要: 概念解释及使用场景: classpath是指WEB-INF文件夹下的classes目录。 通常我们一般使用这种写法实在web.xml中,比如spring加载bean的上下文时,如下: 经过如上的写法,可能会认为这个就是web.xml固有的写法,其实不是,这种写法是spring的写法,与web.xml 阅读全文
posted @ 2019-04-19 16:01 木&子 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Eclipse Web项目下的Web.xml文件下的标签加载过程是context-param >> listener >> fileter >> servlet 阅读全文
posted @ 2019-04-19 15:52 木&子 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 初始化过程: ${initParam.contextConfigLocation} 阅读全文
posted @ 2019-04-19 15:48 木&子 阅读(802) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 21 下一页