print('', end='')

print函数的end参数,从python3才开始支持,所以如果要使用这种模式,需要对应使用python3

原文地址:https://www.cnblogs.com/javametro/p/6859359.html