2020年10月30日

摘要: 常用内置对象方法 string 定义,切片,长度,替换,编列..... 字典 定义,使用,循环遍历.... 集合Set 连接数据库! 各种内置模块 os,file,re,time,json....... 字符串String 定义: 一串字符! 用 ""或'' 引起来! 字符串是字符串列表,索引从0开 阅读全文
posted @ 2020-10-30 20:32 那都不是事呦 阅读(52) 评论(0) 推荐(0) 编辑
 
摘要: s = "abC" upper,lower print(s.upper()) 实现字符串全部大写 print(s.lower()) 实现字符串全部小写 replace 替换 a = "abacad" print(a.replace("a","中国")) print(a.replace("a","中国 阅读全文
posted @ 2020-10-30 20:14 那都不是事呦 阅读(126) 评论(0) 推荐(0) 编辑