下列程序运行的结果为为()
A: hello!andabc
B: hello!anddbc
C: hi!andabc
D: hi!anddbc
A: hello!andabc
B: hello!anddbc
C: hi!andabc
D: hi!anddbc
举一反三
- 已知x = 'hello world,hello jinan,hello python',那么执行语句x = x.replace('hello','hi',1)之后,x的值为____________。 A: 'hi world,hello jinan,hello python' B: 'hello world,hello jinan,hello python' C: 'hi world,hi jinan,hello python' D: 'hi world,hi jinan,hi python'
- 已知字符串 x = 'hello Python',那么执行语句 x.replace('hello', 'hi') 之后,x的值为____________。 A: 'hi Python' B: 'hello Python' C: hello Python D: hi Python
- 程序段如下:var x = new Boolean(false);if (x) { alert('hi');}var y = Boolean(0);if (y) { alert('hello');}最后的显示结果是( ) A: hi B: hi hello C: hello D: 不显示
- 您好,请问到那里?翻译为:() A: hi,whereareyou? B: hello,whereareyougoingto? C: hello,whereareyougoing? D: hi,wheretogo?
- 已知字符串 x = 'hello world',那么执行语句 x.replace('hello', 'hi') 之后,x的值为()