0c6fd1c00f
多读文档(
6 lines
150 B
Python
6 lines
150 B
Python
def remove_suffix(string, suffix):
|
|
return string.removesuffix(suffix)
|
|
|
|
|
|
def remove_prefix(string, prefix):
|
|
return string.removeprefix(prefix)
|