python3中, print横向输出

来源:互联网 发布:游族网络股票 编辑:程序博客网 时间:2024/05/22 02:44

Python 2 :

print打印的时候,如果结尾有逗号,打出来时候不会换行。但是在python3里面就不行了。


Python3:

3.0的print最后加个参数end=""就可以了

原创粉丝点击