• 2021-04-14
    给定字符串s=hello world,获取hello的切片表达式为________。
  • s[0:5]

    内容

    • 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!