multiple prints on the same line in Python

前端 未结 17 2268
独厮守ぢ
独厮守ぢ 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:21

    Just in case you have pre-stored the values in an array, you can call them in the following format:

    for i in range(0,n):
           print arr[i],
    

提交回复
热议问题