Day - 03

01_字符串常用方法_大小寫 判斷字符串 變成‘標題’ In [1]: 'Hello'.istitle() Out[1]: True In [2]: 'hello'.istitle() Out[2]: False In [7]: 'heLLo'.islower() Out[7]: False In [8]: 'heLLo'.isupper() Out[8]: False 將字符串全部變爲大寫 I
相關文章
相關標籤/搜索