Home > Back-end >  In 2020-11-02: go, s:=make (string [], 10); S=append (s, "test"); FMT. Println (s [0]), pr
In 2020-11-02: go, s:=make (string [], 10); S=append (s, "test"); FMT. Println (s [0]), pr

Time:11-03

In 2020-11-02: go, s:=make (string [], 10); S=append (s, "test"); FMT. Println (s [0]), print? # # f greatly architects a daily topic

CodePudding user response:

There is no print what

CodePudding user response:

Ask go in Java, it is to make things

CodePudding user response:

Print an empty string
Append is appended to an array (or section), 10 s itself to apply for the elements of space, but haven't assignment, so s [0] - [9] s are empty string
Can use FMT. Println (strings. Join (s, ", ")) to check were added in the front of the "test" elements are what
  • Related