This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
SisMaker
/
goUtils
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
学习笔记备份提交
v1
SisMaker
4 years ago
parent
3801555811
commit
6690eac357
1 changed files
with
16 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+16
-0
src/learn/slice2.go
+ 16
- 0
src/learn/slice2.go
View File
@ -0,0 +1,16 @@
package
main
import
(
"fmt"
"os"
"strconv"
)
func
main
(
)
{
s
:=
[
]
int
{
1
,
2
,
3
,
4
,
5
,
6
}
Num
,
_
:=
strconv
.
Atoi
(
os
.
Args
[
1
]
)
news
:=
append
(
s
[
:
Num
-
1
]
,
s
[
Num
:
]
...
)
fmt
.
Printf
(
"%v \n"
,
news
)
}
Write
Preview
Loading…
Cancel
Save