大写,小写,首字母大写
word="Hello Eric, would you like to learn some Python today?"
print(word)
print(word.upper())
print(word.lower())
print(word.title())
去空格
word=" Hello Eric "
print(word)
print(word.lstrip())
print(word.rstrip())
print(word.strip())
网友评论