摘要:
字符串内置方法 tips: 如何快速查看数据都有哪些方法:句点符 . 字符串内置方法-- .upper()/.lower() res = 'JasOn123 JAson' # 转大写 print(res.upper()) # 只针对英语字符有效 >>> JASON123 JASON # 转小写 pr 阅读全文
posted @ 2021-11-08 17:15
Joshua_jiaxue
阅读(71)
评论(0)
推荐(0)
摘要:
列表基本操作 列"表"来了 列表内一般都会存储相同数据类型的数据 list的类型转换 数据类型关键字(需要转换的数据) print(list(123)) # 报错 print(list(123.22)) # 报错 print(list('hello')) # ['h','e','l','l','o' 阅读全文
posted @ 2021-11-08 17:15
Joshua_jiaxue
阅读(166)
评论(0)
推荐(0)