字符串操作
===
py就是台灵活了,比如str操作你为什么 直接这样,
~~~
a = 1
b = 2
print(a + b)
msg = ' hello world '
print(msg.upper())
print(msg.lower())
print(msg.title())
print(msg.strip())
print(msg.lstrip())
print(msg.rstrip())
>>>
3
HELLO WORLD
hello world
Hello World
hello world
hello world
hello world
~~~