Python 字符串 lower() 方法

實例

小寫字符串:

txt = "Hello my FRIENDS"
x = txt.lower()
print(x)

運行實例

定義和用法

lower() 方法返回一個字符串,其中所有字符均為小寫。

符號和數字將被忽略。

語法

string.lower()

參數值

無參數