03 字符串类型
摘要:# 1、作用# 2、定义# msg='hello' # msg=str('msg')# print(type(msg)) # 3、类型转换# str可以把任意其他类型都转成字符串# res=str({'a':1})# print(res,type(res)) # 4、使用:内置方法# 4.1 优先掌
阅读全文
posted @ 2023-02-27 17:19
posted @ 2023-02-27 17:19
posted @ 2023-02-27 17:18
posted @ 2023-02-27 17:18