摘要: name = 'The Apple'print(name.capitalize()) #把字符串首字母大写print(name.center(100,'-')) #把字符串居中的print(name.index('p'))#找不到下标的时候会报错print(name.isalnum()) #只能有英 阅读全文
posted @ 2018-06-04 16:22 niel 阅读(151) 评论(0) 推荐(0)