Python使用入门

Posted by Cong Li on May 29, 2018

1. 数据类型

  • 数值型 int, float, bool, complex
  • 字符型 str, bytes
  • 集合型 list, set, dict, tuple

2. 控制结构

区块,缩排一致,一次缩进用4个空格

  • 条件 if-elif-else
  • 循环 for-in, while, pass, break, continue
  • 自定义函数 def