| 123456789101112131415161718 |
- """
- example02 - 数据类型
- author: tanlie
- date: 2026/8/20
- """
- print(100) # integer 100
- print(0b100) # binary 二进制 4
- print(0o100) # octal 八进制 64
- print(0x100) # hexadecimal 十六进制 256
- print(3.14) # float 浮点数 3.14
- print(3.14e2) # scientific notation 科学计数法 314.0
- print("hello python") # string 字符串
- print(True) # boolean 布尔值 True
- print(False) # boolean 布尔值 False
|