# coding = "utf-8"
"""数据清理 删除空白"""
# 字符串开头有空白
favorite_language = " python "
favorite_language.lstrip() # 剔除开头(左边开头)空白
#print(favorite_language)
favorite_language.rstrip() # 剔除末尾(右边)空白
#print(favorite_language)
favorite_language.split() # 剔除两端空白
print(favorite_language)
# 字符串开头有空白
制表符----------------------------------------------------------------------
# coding = "utf-8"
""" pythoon 制表符"""
print("Languages:\n\tpython\n\tc\n\tjava")
换行符----------------------------------------------------------------------
# coding = "utf-8"
""" pythoon 换行符"""
print("Languages:\npython\nc\njava")