字符串、集合、文件操作
摘要:
name = "my name is Alex"print(name.capitalize())#首字母大写print(name.count("a"))#统计字母个数print(name.center(56,"-"))#print(name.encode())#字符串转成二进制print(name. 阅读全文
posted @ 2017-03-20 14:50 yue_427 阅读(161) 评论(0) 推荐(0) 编辑