NP10 投递简历

思路:

del company_list[0] --- del函数后面要跟序号;
company_list.pop() --- 删除列表最后一个元素;
company_list.remove('Tencent') --- 删除列表指定元素;

代码如下:

company_list = [ 'Alibaba', 'Baidu', 'Tencent', 'MeiTuan', 'JD']
for i in company_list:
    print('Hello {}, here is my resume!'.format(i))
print()
del company_list[0]
company_list.pop()
company_list.pop()
company_list.remove('Tencent')
print('{}, thank you for passing my resume. I will attend the interview on time!'.format(company_list[0]))