php
public function __construct()
{
echo "初始化"
}
go
func init(){
fmt.Print("初始化")
}
python
def __init__(self): print("初始化")
php
public function __construct()
{
echo "初始化"
}
go
func init(){
fmt.Print("初始化")
}
python
def __init__(self): print("初始化")