1、编译型需要编译器;执行快调试慢;不可跨平台;代码扩展性差;
依赖解释器 全部加载至解释器 一行行读取;
2、8位bit b=1字节byte B;
3、二进制 ascii; 不同国家文字字符统一unicode; utf-8可变长 单字节 0-unicode 1-;
GBK中文汉字
4、字节码 中间码 机器码
5、三元
6、enumerate可迭代函数 增加索引 索引序列 可迭代序列 获取索引 元组 index+=1
7、lambda表达式 应用场景 lambda x: x*2
匿名函数地址 不能单独调用 配合内置函数使用 max min filter等
8、python递归最大层数 995 998 1000
9、列表生成器 列表推导式 生成器对象 相当于容器 一次次取出 节省内存 转成列表
10、内置函数 sum sorting reverse=T range 迭代器-列表 可迭代-集合
11、filter map reduce;





网友评论