以下选项中,________是正确的字符串。
A: 'h'
B: "he"
C: #hel#
D: hello!
A: 'h'
B: "he"
C: #hel#
D: hello!
举一反三
- 以下选项中,( )是正确的字符串。 A: 'hello' B: "hello " C: hello D: 'h'
- 执行以下程序,结果为:s='hello!'for i in s: print(i, end=" , ") A: hello! B: hello! C: he D: hel
- 字符串""可以用字符数组来定义,如字符串“hello”可以用字符数组定义为以下哪种形式 A: char a[6]={‘h’,‘e’,‘l’,‘l’,‘o’,‘\0’}; B: char a[5]={‘h’,‘e’,‘l’,‘l’,‘o’}; C: char a[6]= {“hello”}; D: char a[5]= {“hello”};
- 下面哪个选项不能将"hello"字符串存入字符数组str中( )。
- 执行下列程序的输出结果是()s="Hello,world"print(s[0:2]) A: Hel B: Hell C: He D: Hello