摘要: 1、python3中的字符串可以使用引号(’或”)开创建。 a = "hello World!” print(type(a)) 结果:<class 'str'> 2、python没有C语言等其他语言中“char”类型,哪怕只有一个字符,python也按照字符串处理。python访问子字符串,可以使用 阅读全文
posted @ 2019-04-15 08:50 cloos.xie 阅读(207) 评论(0) 推荐(0) 编辑