随笔分类 -  字符串

摘要:1.字符串属性方法操作: 1.>字符串格式输出对齐 1 2 3 4 5 6 7 8 9 10 11 >>> str = "Python stRING" >>> print str.center(20) #生成20个字符长度,str排中间 Python stRING >>> print str.lju 阅读全文

posted @ 2019-08-23 15:37 python-小胖 阅读(115) 评论(0) 推荐(0)

导航