Skip to content

备忘录-可能会忘记的点

000

1. 和命令行参数打交道:参考链接
2. 调用(OS)系统命令:参考链接
3. 分割字符串,分割要求的字符:以XX开头,但是不包括XX:参考链接

in  --> XXtest   Xtest  test  XXXtest
out --> test Xteset
name_list = re.split(r'(?<=XX).*', line1)

001

  • 对html文件进行处理

002

  • 查找字符串中是否有中文
  • 基本输入输出

003

  • Python json file to dict/list
  • Python str to dict

004

  • Python str to json
  • Python list to json

005

  • Python 执行程序时获取当前时间
  • Python 将数转为补数

006

  • Python 列表转字符串 (使用 join)
  • Python 二维列表转字符串
  • Python join 遇到 int
  • Python 二维列表初始化
  • Python 遍历多个列表(List)

007

  • Python 与 excel文件打交道

流畅的 Python 记录

1. note_01.md

  • namedtuple 使用
  • map && filter 使用
  • reduce 使用

2. note_02.md

  • Python List 注意点

3. note_03.md

  • Python Dict 注意点

4. note_04.md 函数

  • Python 函数传参的解释(*)
  • Python 函数注解