how to clean data using Python (string part)

1. substring str.replace() : find and replace fav_color = "red is my favorite color" fav_color = fav_color.replace("red", "blue") print(fav_color) 輸出: blue is my favorite color 2. str.title():returns
相關文章
相關標籤/搜索