🚧 密码逻辑
This commit is contained in:
@ -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)
|
||||
}
|
Reference in New Issue
Block a user