end=‘’
2018-06-20 09:16 改改~_~ 阅读(344) 评论(0) 编辑 收藏 举报print('----------------') a = ['aa','bb','cc','dd','ee'] for i in range(len(a)): print(i,a[i])#默认换行 print('分割-----') for i in range(len(a)): print(i,a[i],end='')#不换行 print('分割-----') for i in range(len(a)): print(i,a[i],end=' ')#不换行,空格隔开 print('分割-----') for i in range(len(a)): print(i,a[i],end=',')#不换行,逗号隔开 print('分割-----') for i in range(len(a)): print(i,a[i],end='>')#>隔开