给定字符串s=hello world,获取hello的切片表达式为________。
s[0:5]
举一反三
- 由字符串 s = hello world 获得 Hello World 的方法为?
- 若字符串 s = 'hello world',则语句 s.ljust(15, '.') 和 s.rjust(15) 的输出结果为? A: '....hello world'' hello world' B: 'hello world....'' hello world' C: 'hello world....''hello world ' D: 'hello world....''hello world'
- 中国大学MOOC: 由字符串 s = hello world 获得 Hello World 的方法为?
- 下列选项中,()是正确的JSP表达式。 A: <;% String s="hello world";%>; B: <;%=hello world";>; C: <;%="hello world"%>; D: <;%!"hello world"%>;
- 8、下列选项中,()是正确的表达式。 A: <;% String s="hello world"; %>; B: <;%="hello world"; %>; C: <;% ="hello world" %>; D: <;%! "hello world" %>;
内容
- 0
由字符串 s = 'hello world' 获得 'Hello World' 的方法为? A: s.title() B: s.capitalize() C: s.upper() D: s.isupper()
- 1
由字符串 s = 'hello world' 获得 'Hello World' 的方法为? A: s.title() B: s.capitalize() C: s.upper() D: s.isupper()
- 2
给定一个java程序的代码片断如下,运行后正确的输出结果是( )。String s=”hello, world”;String str = s.replace(“,” , ” ”);System.out.println(str); A: hello world; B: hello, world C: HELLO WORLD D: HELLO ,WORLD;
- 3
中国大学MOOC: 已知字符串s=hello,则表达式he not in hello的值为:
- 4
以下程序段的输出结果是 。Char s[ ]=”Hello World!”;Strlwr(s);Printf(“%s”,s); A: hello world! B: HELLO world! C: hello WORLD! D: HELLO WORLD!