# 3.字符串操作
strinfo=" hello,where are you from? Are you American? do you from china? no,I am from Australian "
# 1) 统计出其"re"和空格各出现的次数
# print(strinfo.count("re"))
# print(strinfo.count(" "))
# 2) 将字符串中所有"om"替换成"en"
# print(len(strinfo))
# print(strinfo.replace('om','en'))

# 3) 将字符串以"？"号进行分割，并保存为列表
# print(strinfo.split('?'))
# 4）去掉前后空格
# print(strinfo.strip(''))
# 5) 组成笑脸Y(^_^)Y

