题解 | #派对名单#
派对名单
http://www.nowcoder.com/practice/df1635c672fc407a84838101fc95058f
#题目有坑,输出之间要空两行,我们只需要输入一个print()函数就能完成空两行 #print()函数末尾自带一个换行符,一个无输入的print()函数相对于占一行,加上自带的换行为两行 guest_list=[ 'Niuniu','Niu Ke Le'] for i in guest_list: print(f'{i}, do you want to come to my celebration party?')
guest_list.insert(0, 'GURR') guest_list.insert(2, 'Niumei') guest_list.append('LOLO') print() for j in guest_list: print(f'{j}, thank you for coming to my celebration party!')