bai_jimmy

导航

2016年3月21日 #

python中的字符串操作

摘要: #!/usr/bin/python # -*- coding: UTF-8 -*- ''' str.capitalize() ''' str = 'this is a string example' print str.capitalize() ''' str.center(width[, fillchar]) ''' str = '123' print str.center(10, '0'... 阅读全文

posted @ 2016-03-21 15:47 bai_jimmy 阅读(177) 评论(0) 推荐(0) 编辑