字符串(str)的魔法

字符串(str)的魔法 1. 字符大小寫 1.1 capitalize() 首字母大寫php test = "aleX" v1 = test.capitalize() print(v1) AleX 1.2 swapcase() 大小寫轉換git v2 = test.swapcase() print(v2) ALEx 1.3 lower() 所有轉換爲小寫,僅支持英文web
相關文章
相關標籤/搜索