str.replacePython中函数的大符号是什么?
str.replace
总是O(n)吗?
str = "this is string example" print str.replace("is", "was")
thwas was string example Run Code Online (Sandbox Code Playgroud)
thwas was string example
python
python ×1