随笔分类 -  Python

摘要:python 字典格式的字符串转为字典 例如: param_dir = '{ "name": "zsh", "age": 18}' 要求:把上述的数据转化为 param_dir = { "name": "zsh", "age": 18} 使用json模块 import json param_dir= 阅读全文
posted @ 2021-04-30 17:41 zhuang6 阅读(751) 评论(0) 推荐(0)
摘要:python基础知识 1. python 和 pip 2. 变量 3. 数据类型 数字 字符串 列表 字典 集合 元组 4. 流程控制语句 5. 内置方法 6. 字符编码 7. 文件处理 8. 函数 9. 名称空间和作用域 10. 模块和包 11. 面向对象 12. 异常处理 13. 网络编程 14 阅读全文
posted @ 2021-03-31 13:13 zhuang6 阅读(40) 评论(0) 推荐(0)
摘要:内置包 os sys time (python时间模块) datetime (python时间模块) random (python随机模块) re (python正则表达式) subprocess (python执行Linux/shell commands) logging hashlib argp 阅读全文
posted @ 2020-03-30 16:52 zhuang6 阅读(101) 评论(0) 推荐(0)
摘要:python 数据类型 数字类型(number) 字符串(str) 列表(list) 字典 (dict) 元组(touple) 集合(set) 阅读全文
posted @ 2020-03-30 15:34 zhuang6 阅读(151) 评论(0) 推荐(0)