我的第一个 Python 包
Project description
pypi-test-first
This is a simple Python package that provides basic mathematical operations.
Installation
pip install pypi-test-first
Usage
import pypi_test_first
result = pypi_test_first.add(2, 3)
print(result) # Output: 5
result = pypi_test_first.subtract(5, 3)
print(result) # Output: 2
result = pypi_test_first.multiply(2, 3)
print(result) # Output: 6
result = pypi_test_first.divide(6, 3)
print(result) # Output: 2.0
Available Functions
add(a, b): Returns the sum ofaandb.subtract(a, b): Returns the difference betweenaandb.multiply(a, b): Returns the product ofaandb.divide(a, b): Returns the result of dividingabyb. Raises aValueErrorifbis zero.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pypi_test_first-0.1.1.tar.gz
(3.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypi_test_first-0.1.1.tar.gz.
File metadata
- Download URL: pypi_test_first-0.1.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59d78eb7c0227f1a75a7a28df1429dec590132d51e00150559dc3fa4cc35e850
|
|
| MD5 |
a7ae1379c45876afbe5de71c6a7d79da
|
|
| BLAKE2b-256 |
0d94a5f14a9a6c9da9cfedf4bc98a01b774a04c5df0bb664a8b85d75ff95858c
|
File details
Details for the file pypi_test_first-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pypi_test_first-0.1.1-py3-none-any.whl
- Upload date:
- Size: 1.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f73504f18faecf6fffb37b0daede46ed6ed4f5f5d5889ade688c284d0e13840
|
|
| MD5 |
5da57670aa81abbd7bede2ce68350c05
|
|
| BLAKE2b-256 |
a6c71f4b1ed5233ef9bfbc2c972d97040f6f67f654a289ce25df5d101417e3f5
|