Python2的写法是:python
print 'hello',
Python3的写法是:code
print('hello', end='')
对于python2和python3都兼容的写法是:io
from __future__ import print_function print('hello', end='')