返回字符串的大写形式 Ucase
该函数首先解析选项的第二个词(第一个词是名字),将它变为大写形式,然后比较两个字符串,并返回- 1、1或0。
This function first parses the second word from the option (the first word being the first name), changes it to upper case, and then compares the two strings and returns a -1, 1, or 0.
or UPPER U CASE (p. d escription)返回一个字符串,其中输入值中的所有字母字符都已转换为大写。
UCASE, or upper UCASE (p.description) Returns a character string in which all alphabetical characters in the input value have been converted to uppercase.
有时候建立一个列表需要遍历另一个列表。比如下面的这个函数就接收一个字符串列表,将所有字符串变为大写字母组成的,然后返回一个这些大写字符串组成的新列表。
Sometimes you want to traverse one list while building another. For example, the following function takes a list of strings and returns a new list that contains capitalized strings.
应用推荐