PyMySQL 数据库操作指南
Posted on
in
python
• 427 words
• 3 minute read
python 基础
Posted on
in
python
• 85 words
• 1 minute read
python:函数
Posted on
in
python
• 80 words
• 1 minute read
函数
- 1、常使用的模块
- 2、模块的代码比较多
- 3、具有独立功能的代码块组织为一个小模块,这就是函数
- 4、函数的优点:提高代码的复用性,提高代码的可维护性
Read more...
python元祖与字典
Posted on
in
python
• 131 words
• 1 minute read
元祖
tuple()
定义元组
- 元组中存放的数据可以使int,str list diec
- 读取元组的值使用下标
- 元组的修改和删除是不支持的
- 但是列表支持修改a[0]=99元组不允许删除部分:remove pop del元组不能使用
Read more...
Python内存管理与垃圾回收机制详解
Posted on
in
python
• 344 words
• 2 minute read
垃圾回收
- GC(Garbage collection)垃圾回收
- python采用的是引用计数机制为主,标记-2清楚和分代收集(隔代回收,分代回收)两种机制
为辅的策略
Read more...