Python 字符串String count() 方法 Python 字符串String center() 方法 Python 字符串String decode() 方法 Python 字符串String count() 方法 #!/usr/bin/python str = "this is string example....wow!!!"; sub = "i"; print "str.count(sub, 4, 40) : ", str.count(sub, 4, 40) sub = "wow"; print "str.count(sub) : ", str.count(sub) Python 字符串String center() 方法 Python 字符串String decode() 方法