str_a = "qbacdcvf"
# 替换replace
str_b = str_a.replace("a","1")
print(str_b)
#split方法 将字符串分割返回一个list
str_a = "qba,cdc,vf"
str_a_list = str_a.split(",")
print(str_a_list,type(str_a_list))
#strip方法,不传参数去除前后空格跟换行,传入参数去除前后中与传参一致的值
str_a = " qba cdc vf "
print(str_a.strip())
str_a = "1qba1 cd2c vf2"
print(str_a.strip("12"))