摘要:
string.strip([chars]) 方法删除字符串开头和结尾指定的字符或字符序列(即不能删中间字符)。 string.lstrip([chars]) 方法删除字符串开头指定的字符或字符序列(即不能删中间字符)。(l - left - strip 左侧,即开头) string.rstrip([ 阅读全文
摘要:
具体使用方法: #json.dumps 实现python类型转化为json字符串 #ensure_ascii=False实现让中文写入的时候保持为中文 json_str = json.dumps(mydict,indent=2,ensure_ascii=False) #json.loads 实现js 阅读全文