摘要: find 从字符串找出对应的子序列 test="chb0420"v=test.find("0",0,3)print(v)输出结果为-1 后面的是开区间 test="chb0420"v=test.find("c",0,3)print(v)输出结果0 前面的是闭区间format格式化 将占位替换 for 阅读全文
posted @ 2020-04-27 13:09 质料 阅读(125) 评论(0) 推荐(0)