python中print不换行的方法

    python中的print默认是换行的,如下:
换行
    想让其不换行,只需要加上逗号即可,如下:
不换行
除此之外,还有一种类似c语言中printf的写法,如下:
类c写法

转载于:https://my.oschina.net/styshoo/blog/546661

猜你喜欢

转载自blog.csdn.net/weixin_33699914/article/details/91916787