f = ""s = ""i = 1sum = 0while i < 100: if i %2 == 1 and i < 99: f = "-" sum = sum + i elif i == 99: f = "=" sum = sum + i elif i %2 == 0: f = "+" sum ...
分类:
编程语言 时间:
2018-01-14 17:39:18
阅读次数:
195
代理服务器概述:基本概念?proxy:代理人、经纪人、中介??? 代替用户处理事务?--能提供正常情况下不便或无法访问的资源?应用场景:? ? ? --web访问加速(正/反向)? ? ? --IP伪装、“×××”?Squid服务器???&n
分类:
其他好文 时间:
2018-01-14 15:15:24
阅读次数:
161
"欢迎fork and star:Nowcoder Repository github" 3. Longest Substring Without Repeating Characters 题目 解析 solution思路循序渐进,很值得思考! 对找到元素后更新位置处理,i取max(mp[s[j]] ...
分类:
其他好文 时间:
2018-01-14 13:03:42
阅读次数:
93
大致原理: 通过配置监听器在web容器启动或销毁的时候做相应的操作, 系统目录的监听器使用从jdk1.7才有的WatchService 操作步骤: 1> 自定义自己的监听器实现ServletContextListener接口中的两个方法, 一个未初始化Init方法, 一个是销毁方法Destoryed ...
分类:
Web程序 时间:
2018-01-14 01:01:49
阅读次数:
742
Maya Calendar Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 80533 Accepted: 24745 Description During his last sabbatical, professor M. A. ...
分类:
其他好文 时间:
2018-01-13 22:20:05
阅读次数:
177
1 # encoding: utf-8 2 3 # 字符串转义 4 s = 'I\'m ok' 5 print(s) 6 s = 'Learn \"Python\" in imooc' 7 print(s) 8 s = 'Bob said \"I\'m ok\"' 9 print(s) 10 11 ... ...
分类:
编程语言 时间:
2018-01-13 20:52:40
阅读次数:
154
弹性盒(flexbox, flexible box的简称)为css添加了一种新的布局模式,即弹性布局。 弹性盒提供了很多有用的属性,不需要使用浮动或者line-block值就能把多个元素排成一行。建立弹性盒子首先要提供两个组件。1. 弹性容器,建立弹性容器很简单,把div的display属性写成fl ...
分类:
Web程序 时间:
2018-01-13 20:52:16
阅读次数:
167
刚好周末,想研究一下前阵子很火的微信跳一跳 网上查了一下,好像star最多的是这个项目 https://github.com/wangshub/wechat_jump_game 原文地址:http://blog.csdn.net/LittleBeautiful/article/details/789 ...
分类:
微信 时间:
2018-01-13 18:51:01
阅读次数:
318
problem1 link problem2 link problem3 link code for problem1 code for problem2 code for problem3 ...
分类:
其他好文 时间:
2018-01-13 15:33:40
阅读次数:
184