1,字符串和列表的更新异同:
(1)均可更新
(2)It's important to remember that lists are mutable (changeable) in Python, but strings aren't; when you slice a string, you get back a new string. The original string is unchanged unless you purposely "save over" it, like this:
my_string = "Monty Python"
# => Monty Python
my_string = my_string[:-7]
# => Monty