python2.x print打印不换行

为了解决在python2.x,print语句不换行,需要导入

from __future__ import print_function

然后打印使用
print(p, end='')

原文地址:https://www.cnblogs.com/wangwy/p/15694006.html