#print输出后不换行 #python2.x 中末尾加逗号,表示不换行,print 'contents', #python3.x 中默认print('contents',end=' '),想要输出值后不换行,把end=' '换成其它,如end=', '