• Version: 20261019
  • Source Code Copyright: Unknown
  • Redistribution Restriction: This source code is integrated by LEADERG INC. Please use it privately. Please DO NOT distribute it to internet.

Console/terminal demo of print() basics — plain strings, multiple arguments, str.format with positions and names, and f-strings on Windows 11, Ubuntu Linux 24.04 and macOS 14+ (Apple Silicon). Standard library only — no third-party packages, fully offline. CPU only: the demo does no machine learning, so there is nothing to accelerate on a GPU (no CUDA, no Apple GPU).

 

[Folder Structure]

  • CLAUDE.md / AGENTS.md: Program specification (identical content).
  • CHANGELOG.md: Change log.
  • copyright.txt: Copyright notice.
  • Python-Print-Python.html: This document (usage page).
  • tool/tools.py: Shared helpers.
  • src/print_demo.py: The demo.
  • src/: Launcher scripts and requirements.txt (no packages).
  • venv/: Python virtual environment, created by 02_venv_create_windows/linux/mac.

[Prerequisites]

  • Python 3.14, installed by 01_python_install_windows.bat / 01_python_install_linux.sh / 01_python_install_mac.sh (Windows: winget; Ubuntu: apt, or the deadsnakes PPA when the Ubuntu archive has no python3.14; macOS: Homebrew).
  • 02_venv_create_windows.bat / 02_venv_create_linux.sh / 02_venv_create_mac.sh create venv/ with Python 3.14 and install src/requirements.txt, which lists no packages (standard library only; same on every OS).
  • GPU: none. CPU only on every OS, because the demo is plain Python with no GPU-capable library; no NVIDIA driver or CUDA is needed.

[Launcher Scripts]

1. 01_python_install_windows.bat / 01_python_install_linux.sh / 01_python_install_mac.sh

Install Python 3.14 (winget / apt or deadsnakes PPA, needs sudo / Homebrew). Skips the install when Python 3.14 is already present. On Windows, open a new terminal afterwards.

 

2. 02_venv_create_windows.bat / 02_venv_create_linux.sh / 02_venv_create_mac.sh

Create the venv with Python 3.14 and install requirements (none (standard library only)). Aborts loudly if pip fails.

 

3. 03_venv_activate.bat / 03_venv_activate.sh

Activate the venv. On Linux/macOS, source it: source src/03_venv_activate.sh (bash or zsh). If the project folder was renamed after the venv was created, re-create the venv with 02_venv_create_windows/linux/mac first; the other launchers do not need activation.

 

4. 04_print.bat / 04_print.sh

Run the print() basics demo.

 

5. 99_venv_clean.bat / 99_venv_clean.sh

Delete the venv folder.

 

6. 99_venv_deactivate.bat / 99_venv_deactivate.sh

Deactivate the venv in the current shell. On Linux/macOS, source it: source src/99_venv_deactivate.sh (bash or zsh).

[Python Entry Point]

src/print_demo.py

No arguments. Prints plain strings (hello A), several arguments in one call, str.format with positional and named fields (hello A, hello B / hello B, hello A), and an f-string (x + y = 37). Runs on the CPU (standard library only); there is no --device option.

[Quick Start]

Windows 11

src\01_python_install_windows.bat

REM open a new terminal

src\02_venv_create_windows.bat

src\04_print.bat

 

Ubuntu 24.04

bash src/01_python_install_linux.sh

bash src/02_venv_create_linux.sh

bash src/04_print.sh

 

macOS 14+ (Apple Silicon)

bash src/01_python_install_mac.sh

bash src/02_venv_create_mac.sh

bash src/04_print.sh

 

This SDK is built in AppForAI - AI Dev Tools.