PythonAlgorithms 项目教程

PythonAlgorithms 项目教程

PythonAlgorithmsAll Algorithms implemented in Python 3 a project for hacktoberfest2020 - NO Issues or PRs for hacktoberfest 2021 项目地址:https://gitcode.com/gh_mirrors/py/PythonAlgorithms

1. 项目的目录结构及介绍

PythonAlgorithms/
├── .github/
│   └── workflows/
├── algorithms/
│   ├── array/
│   ├── backtracking/
│   ├── bit_manipulation/
│   ├── blockchain/
│   ├── boolean_algebra/
│   ├── cellular_automata/
│   ├── compression/
│   ├── data_structures/
│   ├── digital_image_processing/
│   ├── divide_and_conquer/
│   ├── dynamic_programming/
│   ├── encryption/
│   ├── file_transfer/
│   ├── geometry/
│   ├── graph/
│   ├── greedy_algorithms/
│   ├── hashing/
│   ├── machine_learning/
│   ├── math/
│   ├── matrix/
│   ├── networking/
│   ├── neural_network/
│   ├── other/
│   ├── project_euler/
│   ├── quantum/
│   ├── scheduling/
│   ├── searching/
│   ├── sorting/
│   ├── string/
│   └── web_programming/
├── tests/
│   ├── test_array.py
│   ├── test_backtracking.py
│   ├── test_bit_manipulation.py
│   ├── test_blockchain.py
│   ├── test_boolean_algebra.py
│   ├── test_cellular_automata.py
│   ├── test_compression.py
│   ├── test_data_structures.py
│   ├── test_digital_image_processing.py
│   ├── test_divide_and_conquer.py
│   ├── test_dynamic_programming.py
│   ├── test_encryption.py
│   ├── test_file_transfer.py
│   ├── test_geometry.py
│   ├── test_graph.py
│   ├── test_greedy_algorithms.py
│   ├── test_hashing.py
│   ├── test_machine_learning.py
│   ├── test_math.py
│   ├── test_matrix.py
│   ├── test_networking.py
│   ├── test_neural_network.py
│   ├── test_other.py
│   ├── test_project_euler.py
│   ├── test_quantum.py
│   ├── test_scheduling.py
│   ├── test_searching.py
│   ├── test_sorting.py
│   ├── test_string.py
│   └── test_web_programming.py
├── .gitignore
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── pyproject.toml
└── requirements.txt

目录结构介绍

  • .github/workflows: GitHub Actions 的工作流配置文件。
  • algorithms: 包含各种算法的实现。
  • tests: 包含各种算法的测试文件。
  • .gitignore: Git 忽略文件配置。
  • CONTRIBUTING.md: 贡献指南。
  • LICENSE: 项目许可证。
  • README.md: 项目说明文档。
  • pyproject.toml: 项目配置文件。
  • requirements.txt: 项目依赖文件。

2. 项目的启动文件介绍

项目的启动文件通常是 main.pyapp.py,但在本项目中,由于是算法集合,没有特定的启动文件。每个算法模块可以单独运行。

3. 项目的配置文件介绍

  • pyproject.toml: 使用 Poetry 进行依赖管理和项目打包的配置文件。
  • requirements.txt: 列出了项目运行所需的 Python 包。

pyproject.toml 示例

[tool.poetry]
name = "PythonAlgorithms"
version = "0.1.0"
description = "A collection of various algorithms implemented in Python."
authors = ["vJechsmayr <v.jechsmayr@gmail.com>"]
license = "MIT"

[tool.poetry.dependencies]
python = "^3.8"

[tool.poetry.dev-dependencies]
pytest = "^6.2.2"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

requirements.txt 示例

pytest==6.2.2

以上是

PythonAlgorithmsAll Algorithms implemented in Python 3 a project for hacktoberfest2020 - NO Issues or PRs for hacktoberfest 2021 项目地址:https://gitcode.com/gh_mirrors/py/PythonAlgorithms

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

羿辰果Gemstone

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值