首先官方解释 S.index(sub[, start[, end]]) -> int Like S.find() but raise ValueError when the substring is not found. S.find(sub[, start[, end]]) -> int Return the lowest index in S where substring sub is found, such that sub is contained within S[start:en…
python 字符串和字节互转换.bytes(s, encoding = "utf8") str(b, encoding = "utf-8") i.isspace(): #如果i等于空格返回True int 数字类型 1 class int(object): 2 """ 3 int(x=0) -> int or long 4 int(x, base=10) -> int or long 5 6 Convert a numbe…