testTuple = (0,1,2,3,4,5,6,7,8,9) # 测试元组 print('\nend with \\n')for n in testTuple: print(n) # 正常输出 print('\nend with none')for n in testTuple: print(n,end='') # 循环遍历输出,尾部不附加字符 print('\nend with ')for n in testTuple: print(n,end=' ') # 循环遍历输出,尾部附加空格