python中sequence经常使用方法

(1)序列类型函数app enumerate(), reversed(), sorted(), zip()函数 (2)字符串类型方法ip join(), strip(), replace(), split(), translate(),startswith() 字符串 其中translate()须要使用maketrans()方法:string >>> z = str.maketrans(x,y)
相关文章
相关标签/搜索