replace()替换字符串 将输入的字符串的索引打印出来 ...
分类:
编程语言 时间:
2018-06-01 13:34:06
阅读次数:
188
运行的时候发现 切换到5.5以上的版本就会提示No input file specified,其他什么也没有但是切换到5.5以及5.5以下就没啥问题,这是因为需要修改.htcaess文件 修改如下: RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]修改成Rewri ...
分类:
Web程序 时间:
2018-05-31 23:08:31
阅读次数:
560
这是因为Mac OS X系统下的Webkit内核对于表单样式有很强的控制,所以如果需要自己定义的话,需要重置掉浏览器的默认设置,如下: ...
分类:
系统相关 时间:
2018-05-31 22:59:54
阅读次数:
291
#1.try except /2.try except else /3.try except else finally /4.try finally # try: # lis = [1,2,3] # content = int(input('请输入数字')) # print(lis[content] ...
分类:
其他好文 时间:
2018-05-31 20:31:58
阅读次数:
173
C#有以下几种数据类型: 数据类型案例以及取值范围: 界面: 选择int时: 选中long时: 选中float时: 选中double时: 选中decimal时: 选中string时: 选中char时: 选中Bool时: 源代码如下: using System;using System.Collect ...
1 battery charging voltage : qcom,float voltage mv = ; 2 battery recharge threshold : qcom,resume delta mv = ; 3 the max current battery charging curr ...
分类:
其他好文 时间:
2018-05-31 19:19:26
阅读次数:
167
题面 "传送门" 虚树 把跟询问有关的点拿出来建树,为了方便树$DP$ 在$LCA$处要合并答案,那么把这些点的$LCA$也拿出来 做法:把点按$dfs$序排列,然后求出相邻两个点的$LCA$,把这些点建一个虚树,维护一个栈就好了 Sol 虚树+树$DP$ cpp include define IL ...
分类:
其他好文 时间:
2018-05-31 00:31:06
阅读次数:
179
Given an array of integers nums, write a method that returns the "pivot" index of this array. We define the pivot index as the index where the sum of ...
分类:
其他好文 时间:
2018-05-31 00:22:28
阅读次数:
162
html: <input id="val_name" type="text" placeholder="姓名" onfocus="fup(val_name)" onblur="fdown(val_name)" > js: function fup(id){ setTimeout(function ( ...
分类:
移动开发 时间:
2018-05-30 21:34:00
阅读次数:
235