multiple prints on the same line in Python

前端 未结 17 2277
独厮守ぢ
独厮守ぢ 2020-11-22 06:06

I want to run a script, which basically shows an output like this:

Installing XXX...               [DONE]

Currently, I print Installi

17条回答
  •  醉酒成梦
    2020-11-22 06:32

    This simple example will print 1-10 on the same line.

    for i in range(1,11):
        print (i, end=" ")
    

提交回复
热议问题