Can Golang slice inited by multiply elements like Python?

前端 未结 0 1232
一向
一向 2020-12-02 10:47

Here is the python example:

s = ["push", "pop"] * 10

How to do that in golang?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题