A one-line loop to print all the environment variables in lowercase, with the first letter uppercase, and sorted.
除首字母大写外、用小写字母打印并排序所有环境变量的单行循环。
A multi-line loop to print all the environment variables in lowercase, with the first letter uppercase, and sorted.
除首字母大写外、用小写字母打印并排序所有环境变量的多行循环。
A one-line loop to print all the environment variables in lowercase, with the first letter uppercase, and sorted, using map.
使用map,并且除首字母大写外、以小写字母打印并排序所有环境变量的单行循环。
s2 So, I'm passing in the first character in s2, I'm making it uppercase and then I'm putting it back so casually speaking this is just capitalizing the first letter of whatever word the user typed in to s2.
那么,我把第一个字符传递给,我把它转换成大写的,然后存下来,简单说,这就是把用户输入s2中的单词,的第一个字母转换成大写的。
应用推荐