Python笔记
来源:互联网 发布:cad迷你画图软件 编辑:程序博客网 时间:2024/06/06 12:22
基本变量类型
Python支持四种不同的数字类型:
int(有符号整型)
long(长整型[也可以代表八进制和十六进制])
float(浮点型)
complex(复数)
你还可以使用连续三个单引号 ''' ,或者三个双引号 """ 创建字符串:>>> '''Boom!''''Boom'>>> """Eek!"""'Eek!'三元引号在创建短字符串时没有什么特殊用处。它多用于创建多行字符串。下面的例子中,创建的字符串引用了 Edward Lear 的经典诗歌:>>> poem = '''There was a Young Lady of Norway,... Who casually sat in a doorway;... When the door squeezed her flat,... She exclaimed, "What of that?"... This courageous Young Lady of Norway.'''>>>
阅读全文
0 0
- Python笔记
- python笔记
- python笔记
- python笔记
- python笔记
- PYTHON笔记
- python笔记
- python笔记
- python笔记
- Python笔记
- Python笔记
- Python笔记
- PYTHON笔记
- Python笔记
- python笔记-------------
- python笔记
- Python笔记
- python 笔记
- HDU-1028 Ignatius and the Princess III(母函数)
- runloop 笔记
- 网站收藏
- 文件上传的基本原理(一)
- Mongodb学习(10)一个小例子
- Python笔记
- nginx应用总结(2)--突破高并发的性能优化
- 解决Android 7.0 (Android N)中 Android Device Monitor(DDMS)的 File Explorer不显示目录树的问题
- gstack 查看进程运行堆栈信息
- flume-01-flume的安装配置理解
- IntelliJ Idea 2017 免费激活方法
- navicat无法连接阿里云mysql
- 打开myEclipse后,tomcat报空指针错误
- 台前幕后! Linux 内核 kernel 工作原理