有如下代码: StringBuffer buffer = new StringBuffer("Happy Birthday");buffer.insert(2, '5');System.out.println(buffer);则最后输出的结果是( )
A: Hap5py Birthday
B: H5appy Birthday
C: Ha5py Birthday
D: Ha5ppy Birthday
A: Hap5py Birthday
B: H5appy Birthday
C: Ha5py Birthday
D: Ha5ppy Birthday
举一反三
- 【单选题】def happy(): print("Happy birthday to you!") def happy_birthday(name): happy() print("Happy birthday, dear {}!".format(name)) happy() happy_birthday("teacher") A. Happy birthday to you! Happy birthday to you! Happy birthday, dear teacher! Happy birthday to you! B. Happy birthday to you! Happy birthday, dear teacher! Happy birthday to you! Happy birthday to you! C. Happy birthday to you! Happy birthday, dear teacher! Happy birthday, dear teacher! Happy birthday to you! D. Happy birthday to you! Happy birthday, dear teacher! Happy birthday to you!
- --Happy birthday!--______. A: Happy B: Happy birthday C: Thank you
- 5) To send off Mr. Stone, the students held a birthday party for him.
- ---Happy birthday!--______
- —Why didn’t you come to my birthday party yesterday?—____________ A: Excuse me, my friend sent me a flower. B: Sorry, but my wife had a car accident C: Ha…ha, Idon’t like birthday parties. D: Fine, Inever go to birthday parties.