[学]《Python 核心编程》学习笔记(三)

3. Python 基础

3.1 语句与语法

  #

  

  

  ;

  :

3.2

  不支持 ++x 式的表达式

  (x, y, z) = (1, 2, "3")  多元赋值

3.3 标识符

  _XXX:

  __XXX__:系统定义名字

  __XXX:类中的私有变量名

3.4 基本风格

  __name__

  __main__

3.5 内存管理

  dex VAR

3.6 第一个 Python

  关键知识点

import os

os.linesep

os.path.exists()

fobj.writelines(["%s%s" % (x, ls) for x in all])

3.7 相关模块和开发工具

  Debugger:  pdb

  Logger:  logging

  Profilers:  profile, hotshot, cProfile

3.8 练习

原文地址:https://www.cnblogs.com/YBhello/p/5575830.html