Skip to content

yzy1996/Python-Code

Repository files navigation

Python-Code

A personal collection of Python scripts, demos, and utilities used in learning and daily work.

This repository is organized by topic, and each folder is mostly independent.

What This Repo Is

  • A practical script/snippet repository.
  • Useful for reference, quick reuse, and learning.
  • Not a single packaged Python project (no unified dependency lock / no single entrypoint).

Quick Start

  1. Clone the repository.
  2. Use Python 3.9+ (recommended 3.10/3.11).
  3. Create and activate a virtual environment.
  4. Install dependencies based on the folder/script you want to run.

Example:

python3 -m venv .venv
source .venv/bin/activate
pip install -U pip

Main Folders

Best practices and examples for writing cleaner, more Pythonic code.

Algorithm examples, including:

  • Geometric
  • Least Squares
  • Optimization
  • Sorting
  • Search

Data processing scripts and notes, including:

  • CSV / TXT / Excel
  • PDF / OCR / QR-related tools
  • Image/document processing

Web crawling and browser automation examples.

OpenCV demos and experiments.

Small tutorials combining Python and HTML for simple interactive demos.

Audio / media related scripts.

Notes

  • Some scripts depend on local files or specific runtime environments.
  • Some folders have their own README with more details.
  • If a script fails, check the folder README and install missing dependencies first.

Related

About

Variety of miscellaneous code of python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors