Python字符串

字符串 1、认识字符串 字符串是Python中经常使用的数据类型,通常使用引号来建立字符串python 1. 字符串定义 # 单引号定义字符串 In [1]: s='Hello world!' In [2]: print(type(s)) <class 'str'> # 双引号定义字符串 In [3]: s="Hello world!" In [4]: print(type(s)) <cla
相关文章
相关标签/搜索