; //$token = strtok($string, " ");//把字符串分割为更小的字符串 //print_r($token); //echo strtolower("Hello WORLD!");//把字符串转换为小写 //echo strtoupper("Hello WORLD!");//把字符串转换为大写 //echo strtr("Hilla Warld","ia","eo");//转换字符串中特定的字符 //echo substr(...
关键字参数 **args必须以key=value的方式调用,函数内部会自动转换成字典 defperson(name, age, **other):print('name', name,'age', age,'other', other) person('kk',7) person('ff',20, city='Shang Hai', gender='男') testMap = {'hobby':'coding','height':188}# 如果本身就是一个字典...