#基本的(字面量)值
| 类型 | 描述 | 语法示例 |
|---|---|---|
| 整型 | 无小数部分的数 | 42 |
| 长整型 | 大整数 | 42L |
| 浮点型 | 有小数部分的数 | 42.5, 42.5e-2 |
| 复合型 | 实数(整数或浮点数)和虚数的和 | 38+4j, 42j |
| 字符串 | 不可变的字符序列 | "foo", 'bar', """baz""", r'\n' |
| Unicode | 不可变的Unicode字符序列 | u'foo', u"bar", u"""baz""" |
GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||
GeezerVison is showing github.com — python-basic/500/501.md at master · Peterpanpan/python-basic Expand file tree/ Copy path501.mdMore file actions 10 lines (9 loc) · 394 Bytes / Copy path501.mdFile metadata and controls10 lines (9 loc) · 394 Bytes Edit and raw actions #基本的(字面量)值
| |||||||||||||||||||||
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |