Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 322 Bytes

File metadata and controls

23 lines (17 loc) · 322 Bytes

Python 学习笔记

中文编码

在 Python 2.X 中默认的编码格式是 ASCII 码,需要指定 UTF-8 才可以正确打印中文。

# -*- coding: UTF-8 -*-
print 你好世界

变量类型

  • Numbers
    • int
    • long
    • float
    • complex
  • String
  • List
  • Tuple
  • Dictionary