码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
scala中的implict
1.作为隐式参数 1 object Test { 2 3 def main(args: Array[String]) { 4 import FruitColor._ 5 Fruit.get("apple") 6 } 7 } 8 9 object Fruit{10 de...
分类:其他好文   时间:2014-12-30 23:26:37    阅读次数:254
scala中的view bound与context bound
1.scala中的Int): Unit ={ }}View Code其中的Function1的定义如下2.与view bounds一样context bounds(上下文界定)也是隐式参数的语法糖object Test { def main(args: Array[String]) { } ...
分类:其他好文   时间:2014-12-30 23:17:04    阅读次数:744
Python中的Json
使用json.dumps来将 python对象 --> json对象(其实在python中还是string类型) 例如?json.dumps(a) 注意: json.dumps()的返回值是一个 ‘str‘类型. 使用 json.loads来将 json对象(类型其实还是python的string) -->...
分类:编程语言   时间:2014-12-30 22:15:14    阅读次数:183
javascript---String与Arry
1 var str = "liuzhanqi"; 2 document.write(str["length"]);//等价str.l ength 3 4 var str = string.fromcharcode(72, 101, 108, 108, 111, 33); 5 document...
分类:编程语言   时间:2014-12-30 22:06:54    阅读次数:253
xss各种绕过收集(更新完毕)
click me 用a标签来弹窗"> 在网页过滤了 如果想缩短,可以把上面的参数合并,像这样:String.fromCharCode(76,90,83,66);"> 遇到过滤") 也就是调用js文件xxx 如果想缩短,可以把上面的参数合并,像这样:String.fromCharCode(76,90....
分类:其他好文   时间:2014-12-30 22:05:36    阅读次数:501
struts处理表单数据
action获取表单提交数据 姓名: action类中定义String变量,添加get() set()方法。注意:变量名和表单标签中name属性一致。通过获取String变量的值,就可以得到表单提交的数据。如果表单提交的数据不是String类型,需要定义类型转换器。package com....
分类:其他好文   时间:2014-12-30 22:04:11    阅读次数:113
要点Java17 String
字符串广泛应用在Java编程中,在Java中字符串属于对象,Java提供了String类来创建和操作字符串。创建字符串创建字符串最简单的方式例如以下:String greeting = "Hello world!";在代码中遇到字符串常量时,这里的值是"Hello world!",编译器会使用该值创...
分类:编程语言   时间:2014-12-30 21:53:34    阅读次数:209
[LeetCode] Fraction to Recurring Decimal
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating, enclose the repeating part in parentheses. ...
分类:其他好文   时间:2014-12-30 20:42:23    阅读次数:122
字符串与整形互转
int -> Stringint i=12345;String s="";第一种方法:s=i+"";第二种方法:s=String.valueOf(i);这两种方法有什么区别呢?作用是不是一样的呢?是不是在任何下都能互换呢?String -> ints="12345";int i;第一种方法:i=In...
分类:其他好文   时间:2014-12-30 20:40:58    阅读次数:142
LeetCode: Valid Palindrome 解题报告
Valid PalindromeGiven a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a pla...
分类:其他好文   时间:2014-12-30 20:39:15    阅读次数:156
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!