Skip to content

协作指北

首先是熟悉git的使用,可以参考:

https://liaoxuefeng.com/books/git/introduction/index.html

https://www.w3schools.com/git/default.asp?remote=github

以上选择性看一个即可。至少包含以下内容:

image-20251022004123599

Python:

速通python

https://www.bilibili.com/video/BV1Jgf6YvE8e/

你可以选择任意课程但至少包含以下内容:

Python 基础知识要求

1. Python 基础

  • 基础数据结构
    • list(列表):索引、切片、append、extend、remove
    • dict(字典):键值对、get、keys、values、items
    • tuple(元组):不可变序列
    • set(集合):去重、交并差集
  • 字符串操作:格式化(f-string)、split、join、常用方法

2. 函数与模块

  • 函数定义:def、参数(位置参数、默认参数、*args、**kwargs)
  • 返回值:return 语句
  • 模块导入
    • import module
  • 包管理:pip install、requirements.txt

3. 面向对象编程(重点)

  • 类的基础
    • class 关键字定义类
    • __init__ 构造方法
    • 实例属性 vs 类属性
    • 实例方法、类方法(@classmethod)、静态方法(@staticmethod
  • 继承与多态
    • 单继承、多继承
    • super() 调用父类方法
    • 方法重写(override)
  • 封装
    • 私有属性(_variable__variable
    • @property 装饰器实现 getter/setter
  • 魔术方法
    • __str____repr__:对象字符串表示
    • __len____getitem__:支持 len() 和索引操作

4. 高级特性

  • 列表推导式[x for x in range(10) if x % 2 == 0]
  • Lambda 函数lambda x: x * 2
  • 异常处理
    • try-except-finally 结构
    • 捕获特定异常类型
    • 自定义异常类
  • 文件操作
    • open() 函数和文件模式('r', 'w', 'a')
    • with 语句(上下文管理器)
    • 读写文本和二进制文件

质谱算法:

https://pubmed.ncbi.nlm.nih.gov/39221961/

https://slicermassvision.readthedocs.io/en/latest/

Released under the GNU License.