Python 字符串方法
大寫字符串:
txt = "Hello my friends" x = txt.upper() print(x)
運行實例
upper() 方法返回一個字符串,其中所有字符均大寫。
符號和數字將被忽略。
string.upper()
無參數