In Swift, a parameter has two names: the internal parameter name and the external parameter name.

func addPlayer(PlayerName name :String ){
    print("\(name)")
}
addPlayer(PlayerName: "jack")
Copy the code

Internal parameter name: The parameter name used inside a function (name)

External parameter name: The name of the parameter displayed when the function is called (PlayerName)

Like can add Q group number :874826112, learn together, grow, exchange work experience, remember the points like, comment oh 😯;

For more information, please click the home page…

Jane: www.jianshu.com/u/88db5f157…

csdn:me.csdn.net/beyondforme

The Denver nuggets: juejin. Cn/user / 782508…