python:不常用字符串
# a.zfill()#补0前面
# num ="05"
# print(num.zfill(3))#5代表总共有几位数
# a.replace()#替换字符串
# mag = "nihao.nice to m y"
# new_mag = mag.replace("nihao",'heoll').replace(" ",'',1)
# print(new_mag)
# v.title()#标题
# v.capitalize()#首字母大写
v="are you"
print(v.title())
print(v.istitle())
print(v.capitalize())
# a.isspace()#判断是不是空格
# c =""
# print(c.isspace())
# a.isupper()#判断是否全部为大写字母
# a.islower()#判断是否全部为小写字母
# a.center()
# n ="登录"
# print(n.center(50,'*'))
# print(n.center(50,'-'))

浙公网安备 33010602011771号