#3  书22页 2.3.4

favorite_language = 'python '
favorite_language = favorite_language.rstrip()   ####剃掉字符串后面的空白

print(favorite_language)   


##########

favorite_language2 = ' python'
favorite_language2 = favorite_language.lstrip()   ####剃掉字符串前面的空白

print(favorite_language2)
print("详见源码")
####  . strip() 去除 字符两端的空白
