摘要:
name = "my \tname is {name} and i am {year} old" print(name.capitalize()) 首字母大写 print(name.count("a")) 统计有a字母的数量 print(name.center(50," ")) 打印50个字符,不够 阅读全文
摘要:
key value ''' info = { '001':"陈翔", '002':"妹大爷", '003':"茅台", '004':"瑞土", '005':"蘑菇头", '006':"腿腿", } 创建 print(info) print(info['001']) info["001"] ="吴妈" 阅读全文
摘要:
names = ["Zhangsan"," Lisi"," Wangwu"," Zhoumazi"] import copy names = ["1Zhangsan"," Lisi"," xWangwu",["Wangshanfeng","Paopao"], "Zhoumazi"] print(na 阅读全文