Python 2 : print打印的时候,如果结尾有逗号,打出来时候不会换行。但是在python3里面就不行了。 Python3: 3.0的print最后加个参数end=””就可以了。 推荐学习《python教程》。