Skip to main content

我的第一个 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 of a and b.
  • subtract(a, b): Returns the difference between a and b.
  • multiply(a, b): Returns the product of a and b.
  • divide(a, b): Returns the result of dividing a by b. Raises a ValueError if b is 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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypi_test_first-0.1.1-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

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

Hashes for pypi_test_first-0.1.1.tar.gz
Algorithm Hash digest
SHA256 59d78eb7c0227f1a75a7a28df1429dec590132d51e00150559dc3fa4cc35e850
MD5 a7ae1379c45876afbe5de71c6a7d79da
BLAKE2b-256 0d94a5f14a9a6c9da9cfedf4bc98a01b774a04c5df0bb664a8b85d75ff95858c

See more details on using hashes here.

File details

Details for the file pypi_test_first-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pypi_test_first-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0f73504f18faecf6fffb37b0daede46ed6ed4f5f5d5889ade688c284d0e13840
MD5 5da57670aa81abbd7bede2ce68350c05
BLAKE2b-256 a6c71f4b1ed5233ef9bfbc2c972d97040f6f67f654a289ce25df5d101417e3f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page