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
相关文章
相关标签/搜索