python注意事項2

工具pycharm 1.字符串的方法 hello_str = "hello world" 以什麼開始      hello_str.startwith("h") 以什麼結束      hello_str.endwith() 去除空白字符: string.lstrip()------去除左邊的空白字符 string.rstrip()-----去除右邊的空白字符 string.strip()-----
相關文章
相關標籤/搜索