摘要:
列表常用方法: name = ['zhangsan','lisi','wangwu','xieqi'] name2=[1,2,3,4] name3 = ['zhangsan','lisi',['cinndy','alise'],'wangwu','xieqi'] print(name[2]) wan 阅读全文
摘要:
name ='my \t{name} is liufong'print(name.capitalize())#将字符串的第一个字母变成大写,其他字母变小写print(name.count('l'))#判断是否存在print(name.center(50,'-'))#不够50个用-添加,元素放在最中间 阅读全文