由字符串 s = 'hello world' 获得 'Hello World' 的方法为?
A: s.title()
B: s.capitalize()
C: s.upper()
D: s.isupper()
A: s.title()
B: s.capitalize()
C: s.upper()
D: s.isupper()
举一反三
- 由字符串 s = 'hello world' 获得 'Hello World' 的方法为? A: s.title() B: s.capitalize() C: s.upper() D: s.isupper()
- 由字符串 s = hello world 获得 Hello World 的方法为?
- 中国大学MOOC: 由字符串 s = hello world 获得 Hello World 的方法为?
- 以下要输出“hello,world!”正确的是? A: String s=String.format("%1s%2s","hello","world");System.out.println(s); B: String s=String.format("%1$s,%2$s","hello","world");System.out.println(s); C: String s=String.format("%s,%s","hello","world");System.out.println(s); D: String s=String.format("%1s,%2s","hello","world");System.out.println(s);
- 以下程序段的输出结果是 。Char s[ ]=”Hello World!”;Strlwr(s);Printf(“%s”,s); A: hello world! B: HELLO world! C: hello WORLD! D: HELLO WORLD!