Ben Chuanlong Du's Blog

It is never too late to learn.

Write Unit Tests Using PyTest in Python

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Run pytest in the root directory of your project to run all test suites. You can run test cases in a specific test file (e.g., test_file.py) using the command …

Use Flake8 to Lint Python Scripts

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Configration

It is suggested that you put the configuration into a file named .flake8 in the root directory of your project. When flake8 supports pyproject.toml later, it is best to …

Data Types in Different Programming Languages

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Data Type C C++ Rust Java Python numpy pyarrow Spark SQL SQL
8 bit integer short (16-bit) int8_t i8 short (16-bit) int (arbitrary precision) int8 TinyInt …

Python for Tablet

https://stackoverflow.com/questions/54003194/how-can-i-access-tablet-pen-data-via-python

https://kivy.org/#home