# 2-3个性化消息 字符串的拼接
name = "Eric"
print("Hello "+ name + ",would you liketo learn some Python today?")
# 2-4调整名字的大小写 字符串的常见操作
name = "jAke"
print(name.title())
print(name.lower())
print(name.upper())
# 2-5名言 字符串中引号的应用
print('Albert Einstein once said,“A person who never made a mistake never tried anything new.”')
# 2-6名言2
famouse_person = "Albert Einstein"
message = famouse_person + ' once said,“A person who never made a mistake never tried anything new.”'
print(message)
# 2-7剔除人名中的空白
name = " jake "
print("hello\n" + name)
print("\thello" + name)
print(name.strip())
print(name.rstrip())
print(name.lstrip())