PHP Python样式函数变量

时间:2019-01-10 08:58:43

标签: php python

我的愿望是创造一个更加美丽的环境。有时我不需要中间数据。

def func(one=1,two=2,tree=3):
    return "x"

func(one=1)
func(two=2)
func(tree=3)

php我们编写代码

function func($one=1,$two=2,$tree=3){
 return "x";
}

    func(3); // $one = 3
    func(1,2,3); 

我要样式

func($one=1);

0 个答案:

没有答案