`
message="A person who never made a mistake never tried angthing new."
sb=" Albert Einstein "
print(sb.rstrip())
print(sb.lstrip())
print(sb.strip())
```print("message\n\t\t\t\tsb")
```python
`
message="A person who never made a mistake never tried angthing new."
sb=" Albert Einstein "
print(sb.rstrip())
print(sb.lstrip())
print(sb.strip())
```print("message\n\t\t\t\tsb")
```python
你想替换什么玩意?
首先你根本没有对message和sb进行任何操作,为什么会被替换?
strip函数是有返回值的,它像切片操作一样返回的是一个副本,并不会改变字符串本身