$V2EX
Solana
Give SOL to Copy Address
使用 SOL 向 motopig 打赏,数额会 100% 进入 motopig 的钱包。
 motopig's recent timeline updates
motopig

motopig

V2EX member #20182, joined on 2012-04-29 11:48:00 +08:00
motopig's recent replies
Jul 8, 2025
Replied to a topic by FishMan26 Apple 首批 M4 小板用户崩了?
@FishMan26 我的已经寄回去了
用了好几天了 /:B-)
我也是 md101,5 年前换了 16G 内存和 128Gssd 战到现在 没问题
Nov 9, 2017
Replied to a topic by zjsxwc 程序员 GO 语言的指针使用规范是什么?
```
package main

import "fmt"

type StructType struct {
StructChildOne
*StructChildTwo
}

type StructChildOne struct{}
type StructChildTwo struct{}

func (sto StructChildOne) One() {
fmt.Println("child one method")
}

func (stt *StructChildOne) Towo() {
fmt.Println("child two method sss")
}

func (stt *StructChildTwo) Two() {
fmt.Println("child two method")
}

func (stt StructChildTwo) Twoo() {
fmt.Println("child two method")
}

/*如果在 S 中包含一个嵌入类型 T,那么 S 和*S 的方法集合中都会包含接收者类型为 T 或*T 的所有方法
如果在 S 中包含一个嵌入类型*T,那么 S 和*S 的方法集合中只包含接收者类型为*T 的方法*/

func main() {
var point = new(StructType)
var point2 = StructType{}
point.One()
point.Towo()
point2.One()
point2.Two()
point2.Twoo()// 这行会报错
}
```
``` php
function counter($num)
{
return function () use (&$num) {
return ++$num."<br>";
};
}
$c1 = counter(10);
$c2 = counter(20);
echo $c1();
echo $c2();
echo $c1();
echo $c2();

```
spring bath
May 21, 2013
Replied to a topic by bluegobin 问与答 Bitbucket被封了?
抽抽了 pull不下来 push不上去 时断时续 愁死了... 从昨天下午就这样...
@walleve 你可是很有经验啊...
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5205 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 18ms · UTC 05:57 · PVG 13:57 · LAX 22:57 · JFK 01:57
♥ Do have faith in what you're doing.