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)

./code/0043/exp.py

  • Python subprocess 注意点
  • Python3 encode hex, Python3 decode hex

./code/exception/exp.py

  • Python for 循环得到异常后从当前位置再次尝试 (for loop exception retry)

007

  • Python 与 excel文件打交道

流畅的 Python 记录

  1. note_01.md
  2. namedtuple 使用
  3. map && filter 使用
  4. reduce 使用

  5. note_02.md

  6. Python List 注意点

  7. note_03.md

  8. Python Dict 注意点

  9. note_04.md 函数

  10. Python 函数传参的解释(*)
  11. Python 函数注解