懦弱流沙

文章
7
资源
0
加入时间
4年0月9天

python——list小练习

题目要求1假如有这样的列表:names=['fentiao','fendai','fensi','apple']输出结果为:'I have fentiao, fendai, fensi and apple.'代码示例names=['fentiao','fendai','fensi','apple']print('I have'+','.join(names[:-1])+' and '+names[-1]+'.')输出结果:...