Skip to content

nhanitk14dev/python-parking-system

Repository files navigation

Installation

  1. Download from https://www.python.org/downloads
  2. Install Pip: https://pip.pypa.io/en/stable/installation
  • After we run cmd: pip install virtualenv (default a verison will be installed) We will have a path of package: c:\users\nhanphamv\appdata\local\programs\python\python310\lib\site-packages (20.14.1) We can create multiple version for env: virtualenv --python=/c/Users/nhanphamv/Appdata/Local/Programs/Python/Python310/python.exe venv/python-39 virtualenv /c/users/nhanphamv/appdata/local/programs/python/python310/python.exe venv/python-31.

Active stript: $ > venv/python-39/Scripts/activate.

  1. Install and Export Package:
  1. Execute by cmd: Example: py .\example\variable.py To start this system: py .\parkingPaymentSystem\home.py

  2. Handle Errors and Exceptions: https://docs.python.org/3/tutorial/errors.html

  3. Python OOPs Concepts https://www.geeksforgeeks.org/python-oops-concepts/

  4. Python handle file https://www.w3schools.com/python/python_file_handling.asp

    • "r" - Read - Default value. Opens a file for reading, error if the file does not exist
    • "a" - Append - Opens a file for appending, creates the file if it does not exist
    • "w" - Write - Opens a file for writing, creates the file if it does not exist
    • "x" - Create - Creates the specified file, returns an error if the file exists
  5. Format Float

About

This is a demo for the Console parking payment system using Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages