1049 Counting Ones (30)(30 分) The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form ...
分类:
其他好文 时间:
2018-06-25 15:20:41
阅读次数:
169
当前Linux版本:Ubuntu16.04 一、安装Nginx 在终端中输入命令 " sudo apt-get install nginx ",在确认安装完成后,在浏览器中访问 localhost,出现下面的页面则表示nginx安装成功。 Nginx 服务的操作: 启动nginx服务: sudo s ...
分类:
系统相关 时间:
2018-06-25 15:08:34
阅读次数:
202
问题描述: Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by its bottom left corner and top right corne ...
分类:
其他好文 时间:
2018-06-25 11:07:44
阅读次数:
137
阅读目录 1. Fiddler 抓包简介 1). 字段说明 2). Statistics 请求的性能数据分析 3). Inspectors 查看数据内容 4). AutoResponder 允许拦截制定规则的请求 5). Filters 请求过滤规则 6). Timeline 请求响应时间 2. F ...
分类:
其他好文 时间:
2018-06-24 20:58:16
阅读次数:
284
首字母大写 temp = 'rttty' ret = temp.capitalize() print(ret) 内容居中 temp= 'kfkjdfj' ret =temp.center(21,'*') ###内容居中,两边空白处可以用任意符号填充 print(ret) 子序列个数 temp= ‘r ...
分类:
其他好文 时间:
2018-06-24 13:13:54
阅读次数:
216
border:可以用原生css实现效果。?没看clearfix, float, ?close icon ?colors ?display? 各种显示的格式。embedfleximage replacementPositionScreenreaders?shadowssizingspacingtext ...
分类:
其他好文 时间:
2018-06-24 13:12:16
阅读次数:
152
Given an array of size n, find the majority element. The majority element is the element that appears more than? n/2 ? times. You may assume that the ...
分类:
其他好文 时间:
2018-06-23 22:39:17
阅读次数:
118
关于多元素垂直居中 一、场景描述 一个高度固定的div,做为父元素。 数个高度随机的div,做为子元素,需要在父元素内被垂直居中。 二、相关概念回顾 1.几种box inline box:display为inline或inline block的元素会形成inline box;行内文本会形成inlin ...
分类:
其他好文 时间:
2018-06-23 20:48:58
阅读次数:
197
为了让开发者可以很方便的调起微信提供的能力,例如获取用户信息、微信支付等等,小程序提供了很多 API 给开发者去使用。 要获取用户的地理位置时,只需要: wx.getLocation({ type: 'wgs84', success: (res) => { var latitude = res.la ...
分类:
微信 时间:
2018-06-23 19:13:24
阅读次数:
215
C++98中的智能指针通过一个模板类 来实现, 操作符返回的指针可以交由它来管理,程序员不用再显式的调用 ,这在一定程度上避免了堆内存忘记释放的问题; 不过 有一些缺点,比如拷贝时返回一个左值,不能调用delete[]等 。 C++11中废弃了 ,改用 等智能指针来自动回收堆分配对象,使内存管理更安 ...
分类:
其他好文 时间:
2018-06-23 18:51:34
阅读次数:
168