Display string multiple times

前端 未结 2 1414
别跟我提以往
别跟我提以往 2020-11-29 03:19

I want to print a character or string like \'-\' n number of times.

Can I do it without using a loop?.. Is there a function like

print(\'-\',3)
         


        
2条回答
提交回复
热议问题