摘要:
name = "my \tname is {name} and i am {year} old" print(name.capitalize())#首字母大写 print(name.count("a"))#统计字符串中的存在的数量 print(name.center(50,"-"))#打印字符串不够50个的用-在左右进行补上 print(name.encode())#将字符串转换... 阅读全文
posted @ 2018-04-12 10:53
睡到自然醒ccc
阅读(406)
评论(0)
推荐(0)

浙公网安备 33010602011771号