会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
cloos
博客园
首页
新随笔
联系
订阅
管理
2019年4月15日
python学习笔记2:字符串
摘要: 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)
编辑
公告