对于2.X版本,在print语句后面加上 , print 'hello world', 加了, 结果: 没加, 程序的结果: 对于3.x版本,在print语句后面加上end="" print( 'hello world ', end="")