🚧 密码逻辑

This commit is contained in:
微凉
2021-03-06 23:19:16 +08:00
parent 3138e031f5
commit 443067b80f
3 changed files with 24 additions and 3 deletions

View File

@ -11,3 +11,11 @@ func TestSplit(t *testing.T) {
strs := strings.Split(drive_id, "/")
fmt.Println(strs)
}
func TestPassword(t *testing.T) {
fullName:="hello.password-xhf"
index:=strings.Index(fullName,".password-")
name:=fullName[:index]
password:=fullName[index+10:]
fmt.Printf("name:%s, password:%s\n",name,password)
}