小写:x.lower()
大写:x.upper()
首字母大写:x.title()
合并:x+y
添加空白:
制表符:
ex.
print(x)
x
print(\tx)
x
四个空格格式
换行符:
\n
删除空白:
x.strip()------暂时,未储存在x中
x=x.strip
x的左空白:x.lstrip
x的右空白:x.rstrip
小写:x.lower()
大写:x.upper()
首字母大写:x.title()
合并:x+y
添加空白:
制表符:
ex.
print(x)
x
print(\tx)
x
四个空格格式
换行符:
\n
删除空白:
x.strip()------暂时,未储存在x中
x=x.strip
x的左空白:x.lstrip
x的右空白:x.rstrip