摘要: python的字符串操作通过2部分的方法函数基本上就可以解决所有的字符串操作需求: python的字符串属性函数 python的string模块 1.字符串属性方法操作: 1.>字符串格式输出对齐 >>> str = "Python stRING" >>> print str.center(20) 阅读全文
posted @ 2016-08-18 15:27 梦徒 阅读(36362) 评论(0) 推荐(0) 编辑