首页 > 文章列表 > python3如何横向打印

python3如何横向打印

Python3 横向打印
194 2022-08-07



Python 2:

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

Python 3:

3.0版本以后,在print的最后加个参数end=""就可以了。