Python笔记

常用内建函数:

help 帮助
dir 查看模块中的属性

使用局部变量替换模块变量

str()输出友好,repr()对python友好, 例如:eval(repr(x)) 可以重新得到该对象。

你可能感兴趣的:(Python笔记)