In this example, it converts the first character of the name to uppercase, and the remaining characters to lowercase, and then USES that modified string as the new name value.
在这个例子中,它将名称的首字母大写,其它的字母保持小写,然后用修改过的字符串作为新的名称值。
Any method called with this decorator USES only lowercase strings.
使用此修饰符调用的任何方法都将只使用小写字符串。
应用推荐