摘要:
常用内置对象的方法 String 定义,切片,长度,替换,编列..... 列表/元组 定义,使用,循环遍历...... 字典 定义,使用,循环遍历....... 集合Set 连接数据库! 各种内置模块 os,file,re,time,json....... 字符串String 定义: 一串字符! 用 阅读全文
posted @ 2020-10-31 14:04
坤哥哥s
阅读(54)
评论(0)
推荐(0)
摘要:
字符串的方法: s = "abC" upper,lower print(s.upper()) 实现字符串全部大写 print(s.lower()) 实现字符串全部小写 replace 替换 a = "abacad" print(a.replace("a","中国")) print(a.replace 阅读全文
posted @ 2020-10-31 14:02
坤哥哥s
阅读(56)
评论(0)
推荐(0)
浙公网安备 33010602011771号