SICP-2.2-String
来源:互联网 发布:vc 多线程编程 编辑:程序博客网 时间:2024/06/03 09:08
字符串
- Python中文本值叫做string,构造函数为str
- 形式为内容被单引号或双引号包含
- 多行文本值为三引号包含文本内容
>>> 'I am string!''I am string!'>>> "I've got an apostrophe""I've got an apostrophe">>> '您好''您好'>>> """The Zen of Pythonclaims, Readability counts.Read more: import this."""'The Zen of Python\nclaims, "Readability counts."\nRead more: import this.'
- string符合前面提到的序列的两个特性
- 它有长度
- 它有元素选择器
- 和序列相同,Python支持操作符操作
- 字符串构造器——str()
>>> str(2) + ' is an element of ' + str(digits)'2 is an element of [1, 8, 2, 8]'
阅读全文
0 0
- SICP-2.2-String
- sicp 2.2 习题
- SICP section 2.2
- sicp习题2.2
- SICP Section 2.2.1
- SICP 2.2 嵌套映射
- sicp
- SICP
- 【SICP练习】43 练习2.2
- SICP学习笔记(2.2.2)
- SICP学习笔记(2.2.3)
- SICP学习笔记 (2.2.4)
- SICP 习题2.2 线段的中点
- SICP 2.2.3 对一种数据处理过程的抽象
- sicp-1
- SICP参考资料
- SICP习题
- SICP HASKELL
- Validate US Telephone Numbers
- 设计模式-工厂模式
- 170626 逆向-Crackme之005
- debian安装apache2成功之后,在web请求显示的文档 翻译
- VMware虚拟网卡
- SICP-2.2-String
- LeetCode 66. Plus One
- Linux下为文件增加列的shell脚本
- 论文《Recurrent Convolutional Neural Networks for Text Classification》总结
- 将自己的时间戳转换为几分钟前,几小时前,几天前
- com.android.volley.NoConnectionError: javax.net.ssl.SSLHandshakeException: java.security.cert.CertP
- No content to map due to end-of-input
- 使用Tomcat搭建最简单的服务器
- ubuntu控制mysql