example02.py 419 B

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