Python 2:使用print后加一个逗号:print 'hello',Python 3:输入参数end:print ('hello', end='')
加逗号应该对的。print('hello', 'world')试试看,应该在一行!
sys.stdout.write